I'm working on a project and its root directory has both files:
They both seem to configure bower
, they both seem to use JSON, and my project has both files. But how are they different?
The bower site explains the difference:
~
) and/or the "global folder" (aka /
). This file configures how the bower program (the command-line utility) will work. The configurations in this file are merged with configurations you can specify other ways (i.e. arguments via the command-line) so bower knows how to runThis repository also explains the difference (emphasis added):
- With bower.json for project configuration (like package.json or Gemfile)
- With configuration variables for execution in general (like command-line flags)
Notice that "configuration" can be expressed in the .bowerrc
file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With