[build] update gulp debug logger

This commit is contained in:
2017-12-20 17:53:58 +03:00
parent 69c2b735a0
commit 6345ddcd19
17 changed files with 212 additions and 77 deletions

View File

@@ -125,18 +125,18 @@ class FlashPlayer extends Sdk {
FlashPlayer.enableLog();
exec('.', [this.flashPlayerBin(debug), file.path].join(' ')).then(() => {
stream.emit('end');
//callback();
callback();
}).catch((error) => {
stream.emit('end');
//callback();
stream.emit('error', error);
stream.emit('error', new gutil.PluginError({plugin: this.tag, message: error}));
callback();
});
//stream.push(file);
// ToDo: watch when file is exists
// or create log file in FlashPlayer.enableLog()?
stream.push(new gutil.File({
/*stream.push(new gutil.File({
path: FlashPlayer.log
}));
}));*/
stream.push(file);
};
return stream = through.obj(bufferContents);