mkfile
Task driven build tool.
Last updated 4 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mkfile 
SYNC missed versions from official npm registry.

mkfile NPM version NPM downloads Build Status XO code style

Task driven build tool.

Full-feature ES2015+ driven task runner.

Install

$ npm install -g mkfile

Usage

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 build

CLI

$ 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 help

API

this

.run

Run a task by name.

global variables

  • cli CLI arguments parsed by meow, the object contains .input and .flags.
  • Built-in unix shell commands, see usage at shelljs.

License

MIT © EGOIST

Current Tags

  • 1.2.1                                ...           latest (4 years ago)

4 Versions

  • 1.2.1                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.1.3                                ...           5 years ago
  • 1.1.2                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (13)
Dev Dependencies (2)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |