You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
420 B
27 lines
420 B
#!/usr/bin/env node
|
|
|
|
'use strict';
|
|
|
|
require('colorful').colorful();
|
|
const gulp = require('gulp');
|
|
const program = require('commander');
|
|
|
|
program.on('--help', () => {
|
|
console.log(' Usage:'.to.bold.blue.color);
|
|
console.log();
|
|
});
|
|
|
|
program.parse(process.argv);
|
|
|
|
const task = program.args[0];
|
|
|
|
if (!task) {
|
|
program.help();
|
|
} else {
|
|
console.log('scripts run', task);
|
|
|
|
require('./gulpfile');
|
|
|
|
gulp.start(task);
|
|
}
|