Question

Looking at the available components on Bower, the very first repository (accounting.js) doesn't seem to have a component.json-file. Reading through the documentation, this seems to be required in order to be added as a Bower-component.

How is this possible?


Edit: Besides adding a component.json-file, it will also work when you follow the semver-specification. This seems not to be the case because there are two JS-files in the root (accounting.js and accounting.min.js).

Was it helpful?

Solution

Unfortunately Bower doesn't yet have any validation when registering a component, which means anyone can register anything. This is the reason some components in the registry are invalid. Validation is mainly waiting for the server part to be ported to Node.js.

A component.json is always recommended, but only required if you have multiple files and/or dependencies, otherwise Bower will infer the version from the git tags.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top