first commit
This commit is contained in:
11
node_modules/indefinite/gulp/spawn.js
generated
vendored
Normal file
11
node_modules/indefinite/gulp/spawn.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
const gulp = require('gulp');
|
||||
const { spawn } = require('child_process');
|
||||
|
||||
const task = (cmd, args) => {
|
||||
return (done) => {
|
||||
spawn(cmd, args, { stdio: 'inherit' }).on('close', () => done());
|
||||
};
|
||||
};
|
||||
|
||||
gulp.task('spawn:nyc', task('npm', [ 'run', 'cover' ]));
|
||||
gulp.task('spawn:webpack', task('npm', [ 'run', 'build' ]));
|
||||
Reference in New Issue
Block a user