henriquecarv / gulp-bump-beta

Gulp plugin to bump beta version property in versioning files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 100.0%