1.0.2 • Published 9 years ago

bundle-dependencies v1.0.2

Weekly downloads
2,251
License
BSD-3-Clause
Repository
github
Last release
9 years ago

bundle-dependencies

NPM version Travis build status js-canonical-style

Generates bundledDependencies package.json value using values of the dependencies property. Updates package.json definition using the generated bundledDependencies value.

Install

npm install bundle-dependencies

Add to package.json:

{
    "scripts": {
        "bundle-dependencies": "bundle-dependencies"
    }
}

Options

bundle-dependencies --help
Commands:
  list-bundled-dependencies  Lists names of bundled dependencies.
  update                     Updates package.json bundledDependencies
                             definition.

Options:
  --help  Show help                                                    [boolean]
bundle-dependencies update --help
Options:
  --help     Show help                                                 [boolean]
  --exclude  A space-separated list of dependencies not to include in the
             bundledDependencies definition.               [array] [default: []]

Usage

To simply update bundledDependencies of the package.json in the current working directory, execute the script:

npm run bundle-dependencies update

Publishing

When publishing a package using bundledDependencies property, make sure that your nodu_modules/ directory includes only bundled dependencies, i.e. the module must be install using npm install --production [list of bundled dependencies]. Use this script to do it:

{
    "bundle-publish": "npm run bundle-dependencies update; git commit -m 'Bundled dependencies.' ./package.json; git push; rm -fr ./node_modules; npm install --production $(bundle-dependencies list-bundled-dependencies); npm dedupe; npm prune; npm publish; npm install;"
}
1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.24

9 years ago

0.0.23

9 years ago

0.0.22

9 years ago

0.0.21

9 years ago

0.0.20

9 years ago

0.0.19

9 years ago

0.0.18

9 years ago

0.0.16

9 years ago

0.0.14

9 years ago

0.0.13

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago