Skip to content

Commit

Permalink
Rewrite section about bower.json
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Dec 18, 2015
1 parent 1a98bca commit 10c1b6d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cookbook/frontend/bower.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,11 @@ For more details, read the article `Checking in front-end dependencies`_.
But, it's very possible that Bower will add a lock feature in the future
(e.g. `bower/bower#1748`_).

Bower.json
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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.
If you don't care too much about having *exact* the same versions, you can only
commit the ``bower.json`` file. Running ``bower install`` will give you the
latest versions within the specified version range of each package in
``boewr.json``. Using strict version constraints (e.g. ``1.10.*``) is often
enough to ensure only bringing in compatible versions.

.. _Bower: http://bower.io
.. _`Node.js`: https://nodejs.org
Expand Down

0 comments on commit 10c1b6d

Please sign in to comment.