1.2.1 • Published 10 years ago
mkfile v1.2.1
mkfile

Task driven build tool.
Full-feature ES2015+ driven task runner.
Install
$ npm install -g mkfileUsage
mkfile.js example:
export function clean() {
// clean `build` directory
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 buildCLI
$ mk -h
Task driven build tool.
Usage:
mk [taskName]
-c/--config: Use custom mkfile
-l/--list: List all task names
-v/--version: Print version
-h/--help: Print helpAPI
this
.run
Run a task by name.
global variables
cliCLI arguments parsed by meow, the object contains.inputand.flags.- Built-in
unix shellcommands, see usage at shelljs.
License
MIT © EGOIST