8000 GitHub - mattneary/installcat: Bundle your NPM dependencies on install for easy HTML includes
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mattneary/installcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

3rd party modules used

  • debug - small debugging utility
  • q - A library for promises (CommonJS/Promises/A,B,D)
  • ramda - A practical functional library for JavaScript programmers.

About

Bundle your NPM dependencies on install for easy HTML includes

Resources

Stars

Watchers

Forks

Packages

No packages published
0