IT:AD:Bower:HowTo:Download Packages
Summary
Bower is a command line application that downloads packages into `{currentdirectory}\bowercomponents
Process
- Open a command line
- Even though it is a node.js application, you don't need to fire up node.js first. Just type:
bower install {packagename}
Eg:
bower install angularor
bower install durandal.
Whereas angular is pretty self-reliant (it doesn't depend on other packages), durandal is much more modular.
And that's where you see how useful it is – bower recursively downloads the packages it depends on:
c:\tmp\bower.demo\bower_components>dir Directory of c:\tmp\bower.demo\bower_components 26/10/2014 05:31 p.m. <DIR> . 26/10/2014 05:31 p.m. <DIR> .. 26/10/2014 05:24 p.m. <DIR> angular 26/10/2014 05:31 p.m. <DIR> durandal 26/10/2014 05:31 p.m. <DIR> jquery 26/10/2014 05:31 p.m. <DIR> knockout.js 26/10/2014 05:31 p.m. <DIR> requirejs 26/10/2014 05:31 p.m. <DIR> requirejs-text 0 File(s) 0 bytes 8 Dir(s) 108,238,192,640 bytes free
Neat.