1.0.2 • Published 4 years ago

@wok-cli/task-bump v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Bump Task

Sharable task implementing gulp-bump.

Installation

This task requires @wok-cli/core as peer dependency.

npm i @wok-cli/core @wok-cli/task-bump --save-dev

CLI arguments

To programmatically specify the next version use the --type argument:

gulp bump --type patch

Accepted values are: major, minor or patch.

Parameters

parametertypedefaultnote
srcstringstring[]['package.json']Globs source files (1)
deststring'.'Destination folder (1)
  1. Supports environment templates.

Hooks

This task does not expose any hook.

Example

const $ = require('@wok-cli/core');
const bump = require('@wok-cli/task-bump');

exports.bump = $.task(bump, {
  src: ['./package.json'],
});