Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Version helper like `npm version` as bem-tools command extension
JavaScript
branch: dev

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
test
.gitignore
.jshintrc
.travis.yml
CONTRIBUTING.md
ChangeLog.md
GNUmakefile
LICENSE
README.md
index.js
package.json

README.md

bem-version

bem version command for bem-tools.

Installation

Install it globally if you are using globally installed bem-tools

npm -g install bem-version

Or install it into your project

npm install bem-version --save-dev

Usage

Create commit with patch version bump

bem version patch

Create commit with minor version bump and tag it

bem version minor --tag

If you are on a release branch and want to merge it into master after bumping version run

bem version major --merge --tag

of into another branch

bem version major --merge-into v1 --tag

If you are using git-flow, you could use it with bem version together

git flow release start 1.0.25
git add ChangeLog.md
git commit -m "ChangeLog for 1.0.25"
bem version patch
git flow release finish 1.0.25
Something went wrong with that request. Please try again.