UNPKG

373 BJavaScriptView Raw
1#!/usr/bin/env node
2
3process.ORIGINAL_CWD = process.cwd();
4const Base = require('..');
5const argv = require('minimist')(process.argv.slice(2), {
6 alias: { configfile: 'f' }
7});
8
9Base.cli(Base, argv, function(err, tasks, app) {
10 if (err) return console.log(err);
11
12 app.generate(tasks, function(err) {
13 if (err) return console.log(err);
14 app.emit('done');
15 });
16});