Skip to content

Commit fe1d81f

Browse files
committed
minor #6043 Mention commiting only bower.json (krike, WouterJ)
This PR was merged into the 2.3 branch. Discussion ---------- Mention commiting only bower.json Replaces #5778 | Q | A | --- | --- | Doc fix? | no | New docs? | yes | Applies to | all | Fixed tickets | - The section is called "Should I Git Ignore or Commit Bower Assets?", but we cover only the commit way and not the git ignore way, giving users a bit biased information. We should at least mention that people can also commit bower.json. Thanks to @KriKe for providing the original patch! Commits ------- d701e3d Rewrite section about bower.json 1a98bca Add mention for Bower.json
2 parents e67030f + d701e3d commit fe1d81f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cookbook/frontend/bower.rst

+6
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ For more details, read the article `Checking in front-end dependencies`_.
135135
But, it's very possible that Bower will add a lock feature in the future
136136
(e.g. `bower/bower#1748`_).
137137

138+
If you don't care too much about having *exact* the same versions, you can only
139+
commit the ``bower.json`` file. Running ``bower install`` will give you the
140+
latest versions within the specified version range of each package in
141+
``bower.json``. Using strict version constraints (e.g. ``1.10.*``) is often
142+
enough to ensure only bringing in compatible versions.
143+
138144
.. _Bower: http://bower.io
139145
.. _`Node.js`: https://nodejs.org
140146
.. _BowerPHP: http://bowerphp.org/

0 commit comments

Comments
 (0)