npm install -g [package]
for command line toolsnpm install [package]
for local packages in node_modules/
node_modules
dir for dependenciesnpm install && grunt
and you're all set up!npm install -g bower
components
dir with all dependenciesbower install jquery
creates
components/
└── jquery
├── component.json
├── composer.json
├── jquery.js
└── jquery.min.js
bower install jquery
bower install git://github.com/components/jquery.git
bower install http://foo.com/jquery.awesome-plugin.js
bower install jquery#1.8.1
bower install --save jquery
adds entry to component.json
bower update jquery-ui
{
"name": "myProject",
"version": "1.0.0",
"main": ["./path/to/app.css", "./path/to/app.js", "./path/to/sprite.img"],
"dependencies": {
"jquery": "~1.7.2"
}
}
npm install -g ender
package.json
ender build backbone
creates
.
├── ender.js
├── ender.min.js
└── node_modules
├── backbone
└── ender-js
ender add jquery@1.8
.
├── ender.js
├── ender.min.js
└── node_modules
├── backbone
├── ender-js
└── jquery
ender info
npm install -g volo
volo
key in package.json
volofile
volo create volo-test
.
├── package.json
├── README.md
├── tools
│ ├── build.js
│ └── r.js
├── volofile
└── www
├── index.html
└── js
├── app
│ └── main.js
├── app.js
└── lib
└── require.js
volo search underscore
volo add underscore
volo add -amd documentcloud/underscore exports=_
volo build
component.json
component.json
component.json
component create component-test
component-test/
├── component.json
├── component-test.css
├── History.md
├── index.js
├── Makefile
├── Readme.md
└── template.html
component.json
:{
"name": "component-test",
"repo": "kpuputti/component-test",
"description": "test",
"version": "0.0.1",
"keywords": [],
"dependencies": {},
"development": {},
"license": "MIT",
"scripts": [
"index.js",
"template.js"
],
"styles": [
"component-test.css"
]
}
npm install -g jamjs
jam
key in package.json
jam install underscore
.
└── jam
├── require.config.js
├── require.js
└── underscore
├── package.json
└── underscore.js
ls
, upgrade
, compile
, publish
etc..jamrc
for e.g. repo config