mako-cli

2.1.1 • Public • Published

mako-cli

A command line interface for running mako builds.

npm version npm dependencies npm dev dependencies

Install

This can be installed via npm:

sudo npm install -g mako-cli

This will install it globally, but using it locally is likely more flexible. Either way, you get access to a mako command that you can run.

Usage

This tool takes configuration from a file, rather than passing options directly to the CLI. This was chosen because it was more flexible and easier to maintain. You can load config from either a .makorc file, or in your package.json under a property called mako.

{
  "entries": [
    "index.{js,css}"
  ],
  "plugins": [
    "mako-browser"
  ]
}

Upon running mako, it will load the mako-browser plugin and run on the entry files index.js and index.css.

API


  Usage: mako [options] [entries...]

  Options:

    -h, --help           output usage information
    -V, --version        output the version number
    -C, --cache          turn on caching
    -v, --verbose        turn on verbose logging
    -w, --watch          rebuild when changes occur
    -q, --quiet          only log errors

If you specify any entries, it will use those in place of those specified in the mako.json, allowing you to do only a subset of the overall build.

Debugging

Currently, the logging is very minimal. This will be improved in future versions, but in the meantime, you can leverage the underlying debug tool by adding DEBUG=mako* to your command prompt.

$ DEBUG=mako* mako index.js

Package Sidebar

Install

npm i mako-cli

Weekly Downloads

10

Version

2.1.1

License

MIT

Last publish

Collaborators

  • dominicbarnes