build(gulp): don't try to run cleanup.builder task if builders were not initialized
This commit is contained in:
parent
7140c9cc34
commit
fda8b1d87c
@ -63,9 +63,7 @@ var angularBuilder = {
|
|||||||
rebuildBrowserProdTree: throwToolsBuildMissingError,
|
rebuildBrowserProdTree: throwToolsBuildMissingError,
|
||||||
rebuildNodeTree: throwToolsBuildMissingError,
|
rebuildNodeTree: throwToolsBuildMissingError,
|
||||||
rebuildDartTree: throwToolsBuildMissingError,
|
rebuildDartTree: throwToolsBuildMissingError,
|
||||||
cleanup: function() {
|
mock: true
|
||||||
return Promise.resolve();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -886,9 +884,11 @@ gulp.task('cleanup.builder', function(done) {
|
|||||||
|
|
||||||
// register cleanup listener for ctrl+c/kill used to quit any persistent task (autotest or serve tasks)
|
// register cleanup listener for ctrl+c/kill used to quit any persistent task (autotest or serve tasks)
|
||||||
process.on('SIGINT', function() {
|
process.on('SIGINT', function() {
|
||||||
|
if (!angularBuilder.mock) {
|
||||||
runSequence('cleanup.builder', function () {
|
runSequence('cleanup.builder', function () {
|
||||||
process.exit();
|
process.exit();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
@ -899,5 +899,8 @@ process.on('beforeExit', function() {
|
|||||||
if (beforeExitRan) return;
|
if (beforeExitRan) return;
|
||||||
|
|
||||||
beforeExitRan = true;
|
beforeExitRan = true;
|
||||||
|
|
||||||
|
if (!angularBuilder.mock) {
|
||||||
gulp.start('cleanup.builder');
|
gulp.start('cleanup.builder');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user