0% found this document useful (0 votes)
145 views1 page

Bower

Bower allows overriding dependencies specified in bower.json by using a tilde (~) or caret (^) in the version number. Dependencies installed by Bower are stored in the bower_components directory. To share a new dependency across a team, use the --save option when installing so it gets added to bower.json. Bower can install or uninstall multiple dependencies at once and the bower update command updates dependencies to the latest versions specified in bower.json.

Uploaded by

mohamed yasin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
145 views1 page

Bower

Bower allows overriding dependencies specified in bower.json by using a tilde (~) or caret (^) in the version number. Dependencies installed by Bower are stored in the bower_components directory. To share a new dependency across a team, use the --save option when installing so it gets added to bower.json. Bower can install or uninstall multiple dependencies at once and the bower update command updates dependencies to the latest versions specified in bower.json.

Uploaded by

mohamed yasin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Your project uses angular 1.2.26.

However you would like to override this version


for specific needs with angular 1.3. Which option in the bower.json file allows you
to use to do so? - "angular": "angularjs#~1.2.26"

Where are the added dependencies stored by bower? - bower_components

You have added a new dependency some time in the middle of the project. How do you
get this new dependency shared across with everyone in the team - Use --save
option. The dependency gets added to the .json file which can be distributed to
others

Can multiple dependencies be installed or uninstalled? - Yes

How do you get the latest version of the dependencies as per the json file
installed? - Execute bower update

You are trying to install a particular jQuery version 1.9.15 using bower install
angular. What happens to the installation? ( Hint - jQuery 1.9.15 is not a valid
version ) - Installs closest version

Is Git essential for installing Bower? - Yes

What happens if the following is executed?


'bower install jquery --save-dev' - Will install jquery and add to bower.json
Devdependencies

Bower can be used as a package manager for both server side and client side
applications. - false

When the dependencies are added through bower, how do you refer them in your HTML /
CSS etc. code? - Execute 'bower list -path' and pick the path of the dependencies
for inclusion

When does bower.json get created? - bower.init

Your bower.json file shows the dependency as "angular": "angularjs#~1.2.26"


Assuming you have ONLY following 5 valid versions available for angular, what would
be the latest version that gets installed when you execute "bower update"? Angular
1.0.8, Angular 1.2.9, Angular 1.6.2, Angular 1.5.11, Angular 1.3.3 - 1.2.9

-------------

You might also like