--- a/gulpfile.js Fri Dec 14 15:28:41 2018 +0100
+++ b/gulpfile.js Fri Dec 14 18:33:40 2018 +0100
@@ -2,8 +2,7 @@
concat = require('gulp-concat');
var package = require("./package.json"),
- scripts = package.scripts,
- sources = scripts.sources;
+ scripts = package.scripts;
/** Fix pipe function */
@@ -36,13 +35,19 @@
// Gulp tasks
gulp.task('scripts', function() {
- return gulp.src(sources, {cwd: scripts.base})
+ return gulp.src(scripts.sources, {cwd: scripts.base})
.pipe(concat(scripts.target.replace(/{version}/, package.version)))
.pipe(gulp.dest(scripts.base));
});
-gulp.task('watch', function() {
- gulp.watch(sources, {cwd: scripts.base}, ['scripts']);
+gulp.task('scripts-core', function() {
+ return gulp.src(scripts.core_sources, {cwd: scripts.base})
+ .pipe(concat(scripts.core_target.replace(/{version}/, package.version)))
+ .pipe(gulp.dest(scripts.base));
});
-gulp.task('default', ['scripts', 'watch']);
+gulp.task('watch', function() {
+ gulp.watch(scripts.sources, {cwd: scripts.base}, ['scripts', 'scripts-core']);
+});
+
+gulp.task('default', ['scripts', 'scripts-core', 'watch']);