mirror of
https://github.com/chinchang/web-maker.git
synced 2025-06-08 10:34:55 +02:00
gulpfile: add logging in exec commands
This commit is contained in:
parent
a7ca184699
commit
f540ffb936
11
gulpfile.js
11
gulpfile.js
@ -29,7 +29,9 @@ function minifyJs(fileName) {
|
||||
);
|
||||
}
|
||||
gulp.task('runWebpack', function () {
|
||||
return child_process.exec('npm run build');
|
||||
return child_process.exec('npm run build', (error, stdout, stderr) => {
|
||||
console.log('runWebpack', error, stdout, stderr);
|
||||
});
|
||||
});
|
||||
|
||||
gulp.task('copyFiles', function () {
|
||||
@ -193,7 +195,12 @@ gulp.task('packageExtension', function () {
|
||||
});
|
||||
|
||||
gulp.task('buildWebsite', function () {
|
||||
return child_process.exec('npm run build-website');
|
||||
return child_process.exec(
|
||||
'npm run build-website',
|
||||
(error, stdout, stderr) => {
|
||||
console.log('buildWebsite', error, stdout, stderr);
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
gulp.task('buildDistFolder', function (cb) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user