I am using gulp to uglify and make ready my javascript files for production. What I have is this code:
var concat = require(\'gulp-concat\');
var del = requi
There I have a versioning specific example for your reference. let say you have version.ts file and it contains the version code inside it. You now can do as the follows:
gulp.task ('version_up', function () {
gulp.src (["./version.ts"])
.pipe (replace (/(\d+)\.(\d+)(?:\.(\d+))?(?:\-(\w+))?/, process.env.VERSION))
.pipe (gulp.dest ('./'))
});
the above regex works for many situation on any conventional version formats.