riot-bump
Simple CLI tool for bump a new version
Replaces all occurrences of a string within the JavaScript files in the given directory with the version number in package.json
Install
npm install riot-bump --save-dev
Usage
./node_modules/.bin/riot-bump directory searchedString
directory
โ It is the location of the .js files that will be replaced. Defaults to dist/
searchedString
โ Case sensitive string to replace. Defaults to "WIP"
The version number is readed from the package.json file in the current directory.
The replacement is made without creating backup files.
In package.json
"scripts": {
"test": "make test",
"prepublish": "make build && ./node_modules/.bin/riot-bump"
},