Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I manage bower versioning via git tags only?

Tags:

bower

I can specify version in bower.json, but it's quite daunting and I often forget to update it in my packages and need to do a 2nd commit.

Is it possible for Bower to read git tags and read versions purely from that? (much like Composer does for PHP). I couldn't find any information whether the version property in bower.json is required or not.

like image 788
Michał Pałys-Dudek Avatar asked Jan 13 '23 09:01

Michał Pałys-Dudek


1 Answers

The version property is not required and Bower will happily read your git tags if they're valid semver.

like image 169
Sindre Sorhus Avatar answered Feb 12 '23 09:02

Sindre Sorhus