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
parameter | type | default | note |
---|---|---|---|
src |
string string[] |
['package.json'] |
Globs source files (1) |
dest |
string | '.' |
Destination folder (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'],
});