Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show 'next' version number. #29

Open
RafalFilipek opened this issue May 7, 2015 · 2 comments
Open

Show 'next' version number. #29

RafalFilipek opened this issue May 7, 2015 · 2 comments

Comments

@RafalFilipek
Copy link

Hi!
It would be nice if you could only get the next version number, without updating package files.
Maybe something like:

mversion [ <newversion> | major | minor | patch | prerelease ] [--show -s]

Thanks for your work. Excellent project :)

@mikaelbr
Copy link
Owner

mikaelbr commented May 7, 2015

Hi and thanks for your input!

So your thinking a "dry run", so if you have v1.0.0 now and do:

$ mversion minor -s
v1.1.0

or

$ mversion prerelease -s
v1.0.0-1

You can already get the current version and do this mentally, but we could always add an option if we feel like this adds good value.

$ mversion
package.json: 1.0.0

@RafalFilipek
Copy link
Author

Exactly! It would be very useful in few cases:

  • automation tools (eg. you have to prepare something in your environment for new version)
  • tools with user interface (like WWW)
  • console tools (like ./i-dont-know-git-but-i-want-to-push-my-work-and-tag-it ;))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants