node-make

1.1.1 • Public • Published

node-make NPM version NPM downloads Build Status

Task driven build tool.

Full-feature ES2015+ driven task runner.

Install

$ npm install -g node-make

Usage

makefile.js example:

export function clean() {
  // clean `build` directory
  this.fs.delete('./build')
  // or rm('-rf', './build')
}
 
export function build() {
  this.run('clean')
  // run webpack
  exec('./node_modules/.bin/webpack -p')
}
 
export default function() {
  console.log('This is the default task!')
  // call task manually
  this.run('build')
}
# run default task 
$ mk
# run build 
$ mk build

API

cli

CLI arguments parsed by meow, the object contains .input and .flags.

this

.fs

Built-in fs helpers, see usage at mem-fs-editor.

global variables

Built-in unix shell commands, see usage at shelljs.

License

MIT © EGOIST

Readme

Keywords

Package Sidebar

Install

npm i node-make

Weekly Downloads

4

Version

1.1.1

License

MIT

Last publish

Collaborators

  • kchan