localdeps

Checks if everything is up to date

npm install localdeps
1 downloads in the last day
1 downloads in the last week
10 downloads in the last month

Localdeps

Symbolic links local dependencies to your project

Installation

To use localdeps, make sure you first install it globally:

npm install -g localdeps

Usage / Examples

To use, add 3 things to your package.json:

  1. add a localDependencies section (e.g. "localDependencies":{ "foo":"../shared/foo/" })
  2. add "scripts": { "preinstall":"localdeps" }
  3. add "localdeps":"0.1.x" to your dependencies section

Example:

{
    "name": "foo",
    "version": "0.1.0",
    ...
    "scripts":{
        "preinstall":"localdeps"
    },
    "dependencies":{
        "bar":"0.2.0"
    },

    "localDependencies": {
        "bar":"../bar"
    }
    ...
}

Warning!

If you have any circular local dependencies, localdeps will explode (more accurately, npm install will be called recursively forever and ever and ever).

License

Open source software under the zlib license.

npm loves you