angular-cn/tools/build/pubserve.js

12 lines
282 B
JavaScript
Raw Normal View History

var util = require('./util');
var spawn = require('child_process').spawn;
module.exports = function(gulp, plugins, config, module) {
return function() {
return util.streamToPromise(spawn(config.command, ['serve'], {
cwd: config.path, stdio: 'inherit'
}));
};
};