Skip to content
This repository has been archived by the owner on May 13, 2020. It is now read-only.

Gulp plugin to bump beta version property in versioning files

License

Notifications You must be signed in to change notification settings

henriquecarv/gulp-bump-beta

Repository files navigation

gulp-bump-beta

Gulp plugin to bump beta version property in versioning files

Codacy Badge Build Status npm npm LICENSE Dependabot Status

System Requirements

Installing

  • npm i -D gulp gulp-bump-beta

Usage

  • 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

Output example

[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.

License

Copylefted (c) 2019 Henrique Carvalho da Cruz Licensed under the MIT license.

About

Gulp plugin to bump beta version property in versioning files

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published