mako-cli
A CLI for the mako build runner
Last updated 2 years ago by dominicbarnes .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mako-cli 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.1.1                                ...           latest (2 years ago)

39 Versions

  • 2.1.1                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.13.2                                ...           3 years ago
  • 0.13.1                                ...           3 years ago
  • 0.12.2                                ...           3 years ago
  • 0.12.1                                ...           3 years ago
  • 0.12.0                                ...           3 years ago
  • 0.11.0                                ...           4 years ago
  • 0.10.0                                ...           4 years ago
  • 0.9.2                                ...           4 years ago
  • 0.9.1                                ...           4 years ago
  • 0.9.0                                ...           4 years ago
  • 0.8.8                                ...           4 years ago
  • 0.8.7                                ...           4 years ago
  • 0.8.6                                ...           4 years ago
  • 0.8.5                                ...           4 years ago
  • 0.8.4                                ...           4 years ago
  • 0.8.3                                ...           4 years ago
  • 0.8.2                                ...           4 years ago
  • 0.8.1                                ...           4 years ago
  • 0.8.0                                ...           4 years ago
  • 0.7.0                                ...           4 years ago
  • 0.6.0                                ...           4 years ago
  • 0.5.0                                ...           4 years ago
  • 0.4.1                                ...           4 years ago
  • 0.4.0                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (10)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |