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

Update version in a module ? #1

Closed
gregberge opened this issue May 13, 2013 · 2 comments
Closed

Update version in a module ? #1

gregberge opened this issue May 13, 2013 · 2 comments

Comments

@gregberge
Copy link
Contributor

I think a good feature would be to add the possibility to update a version in a module, may be with a regular expression. An example :

In Backbone, https://github.com/documentcloud/backbone/blob/master/backbone.js :

mversion --file backbone.js --var Backbone.version
@mikaelbr
Copy link
Owner

I'll have to think about this one. It might get too complicated to get this generic enough to account for all use cases. E.g. in Backbone, you also have version number in comment.

@mikaelbr
Copy link
Owner

Sorry for taking so long to answer. I think there are no ways of making this generic enough to work in all cases.
I think the best way might be to use a build script to and access the the version number from package.json/component.json.

Please feel free to re-open, if you think of anything.

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