Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rosswarren/file-version-bump
Bump versions in any file with the standard NPM version command
https://github.com/rosswarren/file-version-bump
Last synced: 10 days ago
JSON representation
Bump versions in any file with the standard NPM version command
- Host: GitHub
- URL: https://github.com/rosswarren/file-version-bump
- Owner: rosswarren
- Created: 2016-05-11T20:32:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-24T17:02:58.000Z (over 7 years ago)
- Last Synced: 2024-12-06T19:11:29.294Z (30 days ago)
- Language: JavaScript
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 53
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# File Version Bump
[![npm version](https://img.shields.io/npm/v/file-version-bump.svg?style=flat-square)](https://www.npmjs.com/package/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:```sh
npm version patch
```[See here for more info](https://docs.npmjs.com/cli/version).
## Installation
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:
```sh
npm install --save-dev file-version-bump
```## Configuration
```json
{
"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.