Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 2.11 KB

README.md

File metadata and controls

58 lines (36 loc) · 2.11 KB

npm-link-shared

Version Build Status Downloads Dependencies

Installs a set of local node modules into a target folder using npm link. Links all dependencies of the local modules if they are listed in the source folder.

Blog post explaining this module.

Installation

npm install npm-link-shared -g

Changelog

v0.3.0 (2016-03-25) - Support for @scope packages. For example, @scope/my-package.

v0.2.1 (2016-01-12) - Thanks to @barroudjo, module folder names are now de-coupled from the names in the package.json. So any name can be used as a folder name.

v0.2.0 (2015-10-30) - Links using --production flag so that devDependencies should not be installed anymore. Tests added.

v0.1.6 (2015-04-20) - Removed unneeded npm dependency. Added a possibility to define which modules to install.

Usage

  npm-link-shared <local-modules-folder> <target-dir>

For example:

  npm-link-shared /home/user/internal_modules/ /home/user/my-project

this links all modules located in the internal_modules directory to the my-project dir.

Define specific modules to install

npm-link-shared <shared-modules-dir> <target-installation-dir> [<module1..> [, <module2..>]];

For example:

  npm-link-shared /home/user/internal_modules/ /home/user/my-project my-module1 my-module2

this links modules my-module1 and my-module2 located in the internal_modules directory to the my-project dir. Only these two modules are installed but their dependencies are resolved against the entire internal_modules directory.

LICENSE

MIT