The version property of the .bower.json file.

bower.json has a property called version. Bower uses tags for version control. I am wondering what this property is used for? Should it match the declared tag? If not, can this cause problems? Is this another way of versioning? does it anyway?

+8
bower
source share
2 answers

Currently, Bower is ignoring version from bower.json .

If the version in bower.json does not match the git tag, you get a warning and the version record in the generated .bower.json fixed ( version in bower.json remains unchanged).

Among other reasons why plugin plugins should consume .bower.json instead of bower.json .

You can safely remove version from your bower.json . Bower respects only git tags.

Most likely, it will not be used even in the future.

+11
source share

You are correct that bower simply uses the git tags available at the git endpoint provided during bower register . Most of the information in bower.json is currently mainly used to store its own entries in a package and is not supported by the bower registry.

The bower team plans to use the valuable information in bower.json (discussed here ) in the future.

+1
source share

All Articles