On Github G100g / speak-bower
npm install -g bower
Per usare Bower installare node, npm e git.
bower install <package>#<version>
$ bower install jquery
$ bower install desandro/masonry
$ bower install git://github.com/user/package.git
$ bower install http://example.com/script.js
Creare un file bower.json
bower install nomepacchetto -S
<script src="bower_components/jquery/dist/jquery.min.js"></script>
Creare il file bower.json
Registrare il pacchetto
$ bower init
{ "name": "blue-leaf", "description": "Physics-like animations for pretty particles", "main": [ "js/motion.js", "sass/motion.scss" ], "dependencies": { "get-size": "~1.2.2", "eventEmitter": "~4.2.11" }, "devDependencies": { "qunit": "~1.16.0" }, "moduleType": [ "amd", "globals", "node" ], "keywords": [ "motion", "physics", "particles" ], "authors": [ "Betty Beta " ], "license": "MIT", "ignore": [ "**/.*", "node_modules", "bower_components", "test", "tests" ], "private": true }
Guida alle specifiche
$ bower register <my-package-name> <git-endpoint>
Versione del pacchetto con semve Git tags (es. v1.2.3)
Repository pubblico
per info http://bower.io