build(gulp): do no rebuild tools during test.unit.cjs
This introduces private !build.js.cjs task that is to be executed only from other public tasks.
This commit is contained in:
parent
3f36a3c119
commit
9d1df21d91
17
gulpfile.js
17
gulpfile.js
|
@ -374,10 +374,10 @@ gulp.task('test.unit.cjs/ci', function(done) {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
gulp.task('test.unit.cjs', ['build/clean.js'], function (done) {
|
gulp.task('test.unit.cjs', ['build/clean.js', 'build.tools'], function (done) {
|
||||||
function buildAndTest() {
|
function buildAndTest() {
|
||||||
runSequence(
|
runSequence(
|
||||||
'build.js.cjs',
|
'!build.js.cjs',
|
||||||
'test.unit.cjs/ci'
|
'test.unit.cjs/ci'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -554,9 +554,20 @@ gulp.task('build.js.prod', ['build.tools'], function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* public task
|
||||||
|
*/
|
||||||
|
gulp.task('build.js.cjs', ['build.tools'], function(done) {
|
||||||
|
runSequence('!build.js.cjs', done);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
var firstBuildJsCjs = true;
|
var firstBuildJsCjs = true;
|
||||||
|
|
||||||
gulp.task('build.js.cjs', ['build.tools'], function() {
|
/**
|
||||||
|
* private task
|
||||||
|
*/
|
||||||
|
gulp.task('!build.js.cjs', function() {
|
||||||
return angularBuilder.rebuildNodeTree().then(function() {
|
return angularBuilder.rebuildNodeTree().then(function() {
|
||||||
if (firstBuildJsCjs) {
|
if (firstBuildJsCjs) {
|
||||||
firstBuildJsCjs = false;
|
firstBuildJsCjs = false;
|
||||||
|
|
Loading…
Reference in New Issue