rsd-gulptasks-release
v1.0.3
Published
Gulp tasks to bump version, create commit, push tag, trigger build, replace versionnumber in dist, create zip folder
Downloads
5
Readme
Rockstar Release Helper
Description:
This little task does these things for you:
- bump the version (patch(default) | minor | major) in package.json
- commit/push the version bump
- create/push a new tag with the release number
- trigger the build job of the project
- replace all occurences of
###VERSIONNUMBER###
in your dist folder - create a zip named with the version number in your distfolder e.g.
dist/release/release_v1.2.3.zip
##Usage:
A new Release can be triggered with
gulp rsd:release
you can add options like so to trigger minor and major releases (defaults to --patch):
gulp rsd:release --minor
gulp rsd:release --major
##Configuration: you need to specify the following information in your packagejson:
"release": {
"branch": "develop",
"distFolder": "./dist",
"buildTask": "build",
"remote": "origin"
}
branch
is the branch you want to deploy, this should allways be the same (will add better config soon)distFolder
this is the folder where the result of the build task of your project will end upbuildTask
the gulp task name of the build task you want to execute for a release buildremote
the remote you want to push to, this should be origin as the jenkins will use origin as remote name for the repo