1.0.4 • Published 7 years ago

assets-shared-deps v1.0.4

Weekly downloads
4
License
MIT
Repository
-
Last release
7 years ago

Assets Shared Dependencies

A small library that merges shared dependencies with local dependencies. Generates a new package.json.

Installation

npm install assets-shared-deps

Usage

There are two different ways to set this up.

Command Line

Make sure you have a local package.json setup, otherwise a pacakge.json will be created with the name set to "assets-shared-deps".

# grab the module first
npm install assets-shared-deps

# rewrite your local package.json by merging it with shared-deps package.json
node ./node_modules/assets-shared-deps/index.js

# after the rewrite, install all modules
npm install
NPM preinstall hook

Create a NPM preinstall hook in your local package.json.

"scripts": {
    "preinstall": "npm install assets-shared-deps && node ./node_modules/assets-shared-deps/index.js"
}

This command will run the following in sequential order. 1. Grabs the shared dependencies from shared-deps node module. 2. Rewrites your local package.json by merging with shared package.json. 3. Runs npm install on the newly created local package.json.

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago