From 795d4ee63249425baf29f504bff9c0cc642911c5 Mon Sep 17 00:00:00 2001 From: Jia Hao Date: Sat, 30 Jan 2016 00:42:47 +0800 Subject: [PATCH] Allow npm publish to log to stdout --- gulpfile.babel.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index e988e10..6b97181 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -73,7 +73,7 @@ gulp.task('watch', ['build'], () => { }); gulp.task('publish', done => { - shellExec('npm publish', done); + shellExec('npm publish', false, done); }); gulp.task('release', callback => { @@ -97,7 +97,7 @@ gulp.task('build-tests', done => { }); gulp.task('prune', done => { - shellExec('npm prune', done); + shellExec('npm prune', true, done); }); gulp.task('test', callback => { @@ -136,8 +136,8 @@ function setUpPaths() { return paths; } -function shellExec(cmd, callback) { - shellJs.exec(cmd, {silent: true}, (code, stdout, stderr) => { +function shellExec(cmd, silent, callback) { + shellJs.exec(cmd, {silent: silent}, (code, stdout, stderr) => { if (code) { callback(JSON.stringify({code, stdout, stderr})); return;