12 lines
282 B
JavaScript
12 lines
282 B
JavaScript
|
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'
|
||
|
}));
|
||
|
};
|
||
|
};
|
||
|
|