1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-06-08 18:54:49 +02:00

gulpfile: add logging in exec commands

This commit is contained in:
Kushagra Gour 2021-03-31 03:13:23 +05:30
parent a7ca184699
commit f540ffb936

View File

@ -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) {