From 1a98bcac1f5c6734efd922eff6024062dd0363c4 Mon Sep 17 00:00:00 2001 From: Christophe Debruel Date: Mon, 12 Oct 2015 15:58:06 +0200 Subject: [PATCH 1/2] Add mention for Bower.json --- cookbook/frontend/bower.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cookbook/frontend/bower.rst b/cookbook/frontend/bower.rst index 39ba43f9802..aa5bc1e1a86 100644 --- a/cookbook/frontend/bower.rst +++ b/cookbook/frontend/bower.rst @@ -135,6 +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. + .. _Bower: http://bower.io .. _`Node.js`: https://nodejs.org .. _BowerPHP: http://bowerphp.org/ From d701e3d8ad2dbbf5780c5efed40600fa0f329977 Mon Sep 17 00:00:00 2001 From: WouterJ Date: Fri, 18 Dec 2015 11:21:06 +0100 Subject: [PATCH 2/2] 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..1051dd7db64 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 +``bower.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