Clearing .tmp after build to avoid template caching
diff --git a/xos/core/xoslib/ngXosLib/generator-xos/app/templates/gulp/build.js b/xos/core/xoslib/ngXosLib/generator-xos/app/templates/gulp/build.js
index d01c070..09f0114 100644
--- a/xos/core/xoslib/ngXosLib/generator-xos/app/templates/gulp/build.js
+++ b/xos/core/xoslib/ngXosLib/generator-xos/app/templates/gulp/build.js
@@ -30,9 +30,8 @@
// compile and minify scripts
gulp.task('scripts', function() {
return gulp.src([
- options.scripts + '**/*.js'
+ options.tmp + '**/*.js'
])
- .pipe(babel())
.pipe(ngmin())
.pipe(angularFilesort())
.pipe(concat('xos<%= fileName %>.js'))
@@ -47,7 +46,7 @@
module: 'xos.<%= name %>',
root: 'templates/'
}))
- .pipe(gulp.dest(options.scripts));
+ .pipe(gulp.dest(options.tmp));
});
// copy js output to Django Folder
@@ -87,11 +86,13 @@
runSequence(
'clean',
'templates',
+ 'babel',
'scripts',
'copyJs',
'copyHtml',
'wiredep',
- 'copyVendor'
+ 'copyVendor',
+ 'cleanTmp'
);
});
}
\ No newline at end of file