installcat

0.2.0 • Public • Published

installcat

Bundle npm dependencies on install, for easy HTML includes.

Installed Cat

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.

Dependents (0)

Package Sidebar

Install

npm i installcat

Weekly Downloads

3

Version

0.2.0

License

MIT

Last publish

Collaborators

  • mattneary