UNPKG

332 BJavaScriptView Raw
1function start (options) {
2 const shell = require('shelljs')
3
4 let port
5
6 console.log(options)
7
8 if (options !== undefined && options.port !== undefined && options.port % 1 === 0) {
9 port = options.port
10 shell.exec(`gulp --silent -p ${port}`)
11 } else {
12 shell.exec('gulp --silent')
13 }
14}
15
16module.exports.start = start