Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guillaumearm/conventional-bump
bump package.json version according to conventional-changelog
https://github.com/guillaumearm/conventional-bump
conventional-changelog npm version-bump
Last synced: about 2 months ago
JSON representation
bump package.json version according to conventional-changelog
- Host: GitHub
- URL: https://github.com/guillaumearm/conventional-bump
- Owner: guillaumearm
- License: mit
- Created: 2018-01-22T16:17:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-03T22:11:21.000Z (about 6 years ago)
- Last Synced: 2024-10-11T15:49:39.410Z (2 months ago)
- Topics: conventional-changelog, npm, version-bump
- Language: JavaScript
- Size: 115 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
conventional-bump
====================[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
bump `package.json` version according to [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog).
`conventional-bump` is built on [conventional-recommended-bump](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-recommended-bump).
Purpose of this library is to automatically bump the package.json version number.
## Installation
```bash
$ npm install --save-dev conventional-bump
```## Usage
```bash
$ conventional-bump --helpUsage: index.js [-p preset]
Options:
--version Print current version [boolean]
-h, --help Show help [boolean]
-p, --preset conventional-changelog preset to use [default: "angular"]
```## Configuration
in your package.json :
```json
{
"scripts": {
"bump": "conventional-bump -p angular",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md"
}
}
```## Publish a npm module
```bash
$ npm run bump && npm publish
```