ant-design-vue/scripts/run.js

27 lines
407 B
JavaScript
Raw Normal View History

2018-04-04 10:39:21 +00:00
#!/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)
}