@wok-cli/task-bump
v1.0.2
Published
A sharable Wok task to bump a file version with semver
Downloads
12
Readme
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-devCLI arguments
To programmatically specify the next version use the --type argument:
gulp bump --type patchAccepted values are: major, minor or patch.
Parameters
| parameter | type | default | note |
| --------- | ------------------ | ------------------ | -------------------------------------- |
| src | stringstring[] | ['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'],
});