From 10c1b6d58757ae2b60e1785e3660186f280e41ce Mon Sep 17 00:00:00 2001 From: WouterJ Date: Fri, 18 Dec 2015 11:21:06 +0100 Subject: [PATCH] Rewrite section about bower.json --- cookbook/frontend/bower.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cookbook/frontend/bower.rst b/cookbook/frontend/bower.rst index aa5bc1e1a86..eb9af63cc6e 100644 --- a/cookbook/frontend/bower.rst +++ b/cookbook/frontend/bower.rst @@ -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