Bower
http://sindresorhus.com/bower-components/
Install bower
Requirements: npm and git should be installed first.
npm install -g bower
Search for package
bower search jquery
Install package
bower install jquery
bower install jquery#1.8.x
Uninstall package
bower uninstall jquery
Create bower.json file
bower init
Example of bower.json file
{
"name": "example",
"version": "0.0.0",
"ignore": ["**/.*", "node_modules", "components"],
"dependencies": {
"bootstrap": "x"
},
"devDependencies": {
"qunit": "1.x"
}
}
bower.sublime-snippet
<snippet>
<content><![CDATA[{
"name": "${1:example}",
"version": "${2:0.0.0}",
"ignore": [
"**/.*",
"node_modules",
"components"
],
"dependencies": {
${3:"bootstrap": "x"}
},
"devDependencies": {
${4:"qunit": "1.x"}
}
}]]></content>
<tabTrigger>bower</tabTrigger>
<scope>source.json, text.plain</scope>
</snippet>