1.0.2 • Published 6 years ago
@wok-cli/task-bump v1.0.2
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'],
});