{"name":"bundle-dependencies","description":"Generates bundledDependencies package.json value using values of the dependencies property.","version":"1.0.0","main":"./dist/index.js","bin":{"bundle-dependencies":"./dist/bin/index.js"},"repository":{"type":"git","url":"git+https://github.com/gajus/bundle-dependencies.git"},"keywords":["npm","bundle","dependencies"],"author":{"name":"Gajus Kuizinas","email":"gajus@gajus.com","url":"http://gajus.com"},"license":"BSD-3-Clause","scripts":{"pragmatist":"pragmatist --es5","lint":"npm run pragmatist lint","test":"","build":"npm run pragmatist build","watch":"npm run pragmatist watch","watch-lint":"npm run pragmatist watch-lint","watch-test":"","watch-build":"npm run pragmatist watch-build"},"dependencies":{"yargs":"^4.1.0"},"devDependencies":{"pragmatist":"^3.0.9"},"gitHead":"29b526e76382267c902db1a1eff1003a0551cdde","bugs":{"url":"https://github.com/gajus/bundle-dependencies/issues"},"homepage":"https://github.com/gajus/bundle-dependencies#readme","_id":"bundle-dependencies@1.0.0","_shasum":"5a78744fc05d00af715178d1c84cb8614f6d2874","_from":".","_npmVersion":"3.7.2","_nodeVersion":"5.6.0","_npmUser":{"name":"gajus","email":"gajus@gajus.com"},"dist":{"shasum":"5a78744fc05d00af715178d1c84cb8614f6d2874","tarball":"http://registry-npm.ywwl.com/bundle-dependencies/download/bundle-dependencies-1.0.0.tgz","integrity":"sha512-brf6W3JCp5RD0CQXHQ/vE0ouUGBGAT9tPibECGTmemiWYW/YKhp0fqO0C0QlkA5ewYeXhuEo+wwJvGP6UYKDxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMNOdGNTUvdBeF6hhy6DHEObOdGhavGwJqqx5EojpSJQIhALXJ9u1QlQXX4qEuRoRsl4s0xZpRu9BH4bVePPna7vVT"}],"size":3318,"noattachment":false,"key":"/bundle-dependencies/-/bundle-dependencies-1.0.0.tgz"},"maintainers":[{"name":"gajus","email":"gajus@gajus.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/bundle-dependencies-1.0.0.tgz_1456154898400_0.11282926448620856"},"readme":"# bundle-dependencies\n\n[![NPM version](http://img.shields.io/npm/v/bundle-dependencies.svg?style=flat-square)](https://www.npmjs.org/package/bundle-dependencies)\n[![Travis build status](http://img.shields.io/travis/gajus/bundle-dependencies/master.svg?style=flat-square)](https://travis-ci.org/gajus/bundle-dependencies)\n[![js-canonical-style](https://img.shields.io/badge/code%20style-canonical-blue.svg?style=flat-square)](https://github.com/gajus/canonical)\n\nGenerates [`bundledDependencies`](https://docs.npmjs.com/files/package.json#bundleddependencies) `package.json` value using values of the dependencies property. Updates `package.json` definition using the generated `bundledDependencies` value.\n\n## Install\n\n```sh\nnpm install bundle-dependencies\n```\n\nAdd to `package.json`:\n\n```json\n{\n    \"scripts\": {\n        \"bundle-dependencies\": \"bundle-dependencies\"\n    }\n}\n```\n\n## Options\n\n```sh\nbundle-dependencies --help\n```\n\n```\nCommands:\n  list-bundled-dependencies  Lists names of bundled dependencies.\n  update                     Updates package.json bundledDependencies\n                             definition.\n\nOptions:\n  --help  Show help                                                    [boolean]\n```\n\n```sh\nbundle-dependencies update --help\n```\n\n```\nOptions:\n  --help     Show help                                                 [boolean]\n  --exclude  A space-separated list of dependencies not to include in the\n             bundledDependencies definition.               [array] [default: []]\n```\n\n## Usage\n\nTo simply update `bundledDependencies` of the `package.json` in the current working directory, execute the script:\n\n```sh\nnpm run bundle-dependencies update\n```\n\n## Publishing\n\nWhen 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:\n\n```json\n{\n    \"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;\"\n}\n```\n","publish_time":1456154903750,"_cnpm_publish_time":1456154903750,"dist-tags":{"latest":"1.0.2"}}