installcat
v0.2.0
Published
Bundle npm dependencies on install, for easy HTML includes.
Downloads
3
Readme
installcat
Bundle npm dependencies on install, for easy HTML includes.
usage
List each bundle to be build in a separate file installcat.json
or inside package.json
under property installcat
$ ls js/
$ cat installcat.json
{
"js/build.js": {
"ramda": "dist/ramda.js",
"foo": "node_modules/foo/index.js"
}
}
$ cat package.json
{
...
"devDependencies": {
"installcat": "*"
},
"scripts": {
"prepublish": "installcat"
}
}
$ npm install
$ ls js/
build.js
File build.js
has the concatenated dist/ramda.js
and node_modules/foo/index.js
contents.
Equivalent to
{
"devDependencies": {
"installcat": "*"
},
"scripts": {
"prepublish": "installcat"
},
"installcat": {
"js/build.js": {
"ramda": "dist/ramda.js",
"foo": "node_modules/foo/index.js"
}
}
}
See example/
for an example configuration.