mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-23 23:11:12 +02:00
gulpfile: add logging in exec commands
This commit is contained in:
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) {
|
||||
|
Reference in New Issue
Block a user