{"name":"bundle-dependencies","description":"Generates bundledDependencies package.json value using values of the dependencies property.","version":"1.0.1","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":"69ec83b17b785c5492d6d01d73743262e63d0a2f","bugs":{"url":"https://github.com/gajus/bundle-dependencies/issues"},"homepage":"https://github.com/gajus/bundle-dependencies#readme","_id":"bundle-dependencies@1.0.1","_shasum":"e58b0a118d998019fb8db59d6b990740a0f254ce","_from":".","_npmVersion":"3.7.2","_nodeVersion":"5.6.0","_npmUser":{"name":"gajus","email":"gajus@gajus.com"},"dist":{"shasum":"e58b0a118d998019fb8db59d6b990740a0f254ce","tarball":"http://registry-npm.ywwl.com/bundle-dependencies/download/bundle-dependencies-1.0.1.tgz","integrity":"sha512-IxWo/D4t5M9XGP7Pk7EyWjmsBdxJfJQF3rcmf52jYD+t5Sn76VyCCgML8igDN2OfxzPM8g1mQyAI3eXbtGQ6dw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH0rwpcKsitHyAgx+5lvtpcNRWLclwNEMeNsuIbD3EnaAiEAsQSx3D6IAVbpywQyGRkdj4YT054BzUFkjJu4pTohzro="}],"size":3329,"noattachment":false,"key":"/bundle-dependencies/-/bundle-dependencies-1.0.1.tgz"},"maintainers":[{"name":"gajus","email":"gajus@gajus.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/bundle-dependencies-1.0.1.tgz_1456154915825_0.05568650760687888"},"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":1456154920980,"_cnpm_publish_time":1456154920980,"dist-tags":{"latest":"1.0.2"}}