0.0.2 • Published 9 years ago
file-version-bump v0.0.2
File Version Bump
file-version-bump is an NPM module that works with the built in npm version command to update semver version numbers in files other than package.json. This all conveniently configured in your package.json.
Usage
Use the standard npm version commands. For example:
npm version patchInstallation
It is advised to install file-version-bump as a devDependencies in your package.json, as you will only need this for development purposes. To install this module, simply run:
npm install --save-dev file-version-bumpConfiguration
{
"name": "my-amazing-module",
"version": "0.0.0",
"main": "index.js",
"scripts": {
"test": "exit 1",
"version": "file-version-bump"
},
"file-version-bump": [
"scss/_version.scss",
"README.md"
]
}You need to add both the scripts entry for file-version-bump and also the file-version-bump entry with an array of globs specifying the files that you would like to have bumped.