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

Add ability to choose a file to bump from the command line #12

Closed
hmgibson23 opened this issue Jul 18, 2014 · 3 comments
Closed

Add ability to choose a file to bump from the command line #12

hmgibson23 opened this issue Jul 18, 2014 · 3 comments

Comments

@hmgibson23
Copy link

Sometimes it's nice just to specify which file you want change, rather than changing them all. Or at least instructions on the README on how to do this.

@mikaelbr
Copy link
Owner

Thanks for sending an issue! In what cases would it be interesting to only bump one package-file? E.g only bump version in package.json but not bower.json. Why would the version in those files differ? I don't really see the use case.

@hmgibson23
Copy link
Author

Hi. So currently have to push to bower and npm separately as we don't want npm to automatically take the latest tags and update the version.

Another solution to this problem would be to allow for different tag formats, then we could specify how we want the tags to appear on node and bower

e.g

mversion x.x.x -m “v%s”
-m allows you to change the format of the commit
we want to be able to change the format of the tag
e.g. mversion x.x.x -m “v%s” —tag “v%s-src”

Or something to this end.

Thanks

@mikaelbr
Copy link
Owner

It still seems a bit weird to me to define package files, as this is the sort of thing I'm trying to abstract, not handling multiple files. But I can see overriding tag name being useful.

I created this PR: #13. Do you think something like this would be fine?

mikaelbr added a commit that referenced this issue Jul 25, 2014
Adds possibility to override tag name. Fixes #12
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