Gulp plugin to bump beta version property in versioning files
- NodeJS (version >= 10).
npm i -D gulp gulp-bump-beta
- Create a gulpfile to run your tasks.
const gulp = require("gulp");
const beta = require("gulp-bump-beta");
const paths = { package: "./package.json", manifest: "./manifest.json" };
const bumpBeta = () => {
return gulp
.src(Object.values(paths))
.pipe(beta())
.pipe(gulp.dest("./"));
};
gulp.task("bump-beta", gulp.series(bumpBeta));
- run your bump-beta script:
gulp bump-beta
[00:00:00] Using gulpfile ~/git/example/gulpfile.js
[00:00:00] Starting 'bump'...
[00:00:00] Starting 'bumpBeta'...
[00:00:00] Bumped 1.0.0 to 1.0.0-beta.1 with type: beta
[00:00:00] Finished 'bumpBeta' after 26 ms
- Your project's
package.json
file should have the new beta version.
Copylefted (c) 2019 Henrique Carvalho da Cruz Licensed under the MIT license.