--- a/gulpfile.js Sat Nov 21 10:28:53 2020 +0100
+++ b/gulpfile.js Sat Nov 21 13:45:36 2020 +0100
@@ -2,6 +2,7 @@
const { src, dest, task, watch, parallel } = require('gulp');
const concat = require('gulp-concat');
const less = require('gulp-less');
+const replace = require('gulp-replace');
const
package = require('./package.json'),
@@ -11,6 +12,7 @@
task('css', function() {
return src(paths.less_main, { cwd: paths.less_base })
.pipe(less())
+ .pipe(replace('$Tag$', `Version: ${package.version}`))
.pipe(dest(paths.less_target));
});
@@ -18,6 +20,7 @@
task('scripts', function() {
return src(paths.sources, { cwd: paths.base })
.pipe(concat(paths.target.replace(/{version}/, package.version)))
+ .pipe(replace('$Tag$', `Version: ${package.version}`))
.pipe(dest(paths.base));
});
@@ -25,6 +28,7 @@
task('scripts_core', function() {
return src(paths.core_sources, { cwd: paths.base })
.pipe(concat(paths.core_target.replace(/{version}/, package.version)))
+ .pipe(replace('$Tag$', `Version: ${package.version}`))
.pipe(dest(paths.base));
});