Nice Paintings, Mondrian
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

localdeps

0.2.0 • Public • Published

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.

Keywords

none

install

npm i localdeps

Downloadsweekly downloads

9

version

0.2.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar