New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

mako-cli

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mako-cli

A CLI for the mako build runner

latest
Source
npmnpm
Version
2.1.1
Version published
Maintainers
1
Created
Source

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

Keywords

mako-util

FAQs

Package last updated on 13 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts