Skip to content

Commit d701e3d

Browse files
committed
Rewrite section about bower.json
1 parent 1a98bca commit d701e3d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cookbook/frontend/bower.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,11 @@ 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-
Bower.json
139-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140-
141-
Another option is to just commit your bower.json to git which holds the different dependencies. Then use `bower install` to install the required dependencies.
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.
142143

143144
.. _Bower: http://bower.io
144145
.. _`Node.js`: https://nodejs.org

0 commit comments

Comments
 (0)