-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Should Bower tools use .bower.json
rather than bower.json
?
#1174
Comments
I agree. That's confusing and unnecessary. Could probably do it like npm and just have |
I have no idea why both are used. |
Do they always have the same format? (I see .bower.json has some additional info). |
.bower.json is a clone of bower.json with additional properties used internally. The reasioning behind it was not to modify the original fil so that people are not induced in error |
@donaldpipowitch didn't you have a case where information wasn't copied over to .bower.json? |
Also for non-registry packages there will be |
@satazor i don't see the problem with modifying the bower.json file. npm does it without problems. |
There might be problems, for instance, bower corrects the 'version' property if it mismatches the tag in git. That could cause confusion if users would inspect bower.json and see different results compared to its remote counterpart. |
Shouldn't bwerr fix |
|
I think it's not that much of surprise that version has been corrected. I'd be more surprised that file contains new keys, but that could be documented behavior. I'm on no side though. Also, users are not confused that ignored files are removed from component dir? :) I think users are confused by both |
Hi @stephenplusplus, no, |
@sheerun you mentioned |
Currently I don't think it's something we want to change. Do you have any problems with it? |
So yeah. The ultimate answer is: use If you have any issues with it, please open new issue :) |
Apparently the recommended place to look for version is .bower.json according to the bower author. See this thread: bower/bower#1174
Or: Should I
ignore
thebower.json
?It seems
.bower.json
is always generated if I install a Bower package, so Iignore
mybower.json
in some of my packages. (It seems bad to duplicate this data - unnecessarily ?) This obviously breaks tools which rely only onbower.json
.Should Bower tools depend solely on
bower.json
or should they at least depend on.bower.json
? (E.g. should I make a pull request for such tools? :))The text was updated successfully, but these errors were encountered: