From ea6b3169328699198c1f4ecedb65151dc0f8aa22 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 27 Oct 2015 12:26:36 +0100 Subject: [PATCH] build(gulp): rename angularBuilder.mock to angularBuilder.uninitialized to prevent confusion with testing mocks Closes #4936 --- gulpfile.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 94ae0c972a..b0095a26b9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -73,7 +73,7 @@ var angularBuilder = { rebuildBrowserProdTree: throwToolsBuildMissingError, rebuildNodeTree: throwToolsBuildMissingError, rebuildDartTree: throwToolsBuildMissingError, - mock: true + uninitialized: true }; @@ -1291,7 +1291,7 @@ gulp.task('benchpress.bundle', ['build/clean.benchpress.bundle', 'build.js.cjs'] // register cleanup listener for ctrl+c/kill used to quit any persistent task (autotest or serve tasks) process.on('SIGINT', function() { - if (!angularBuilder.mock) { + if (!angularBuilder.uninitialized) { runSequence('cleanup.builder', function () { process.exit(); }); @@ -1309,7 +1309,7 @@ process.on('beforeExit', function() { beforeExitRan = true; - if (!angularBuilder.mock) { + if (!angularBuilder.uninitialized) { gulp.start('cleanup.builder'); } });