{"name":"bundle-dependencies","description":"[![NPM version](http://img.shields.io/npm/v/bundle-dependencies.svg?style=flat-square)](https://www.npmjs.org/package/bundle-dependencies) [![Travis build status](http://img.shields.io/travis/gajus/bundle-dependencies/master.svg?style=flat-square)](https:","version":"0.0.2","main":"./dist/index.js","bin":{"bundle-dependencies":"./dist/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":"node ./node_modules/.bin/pragmatist --browser","lint":"npm run pragmatist lint","test":"npm run pragmatist test","build":"npm run pragmatist build","watch":"npm run pragmatist watch","watch-lint":"npm run pragmatist watch-lint","watch-test":"npm run pragmatist watch-test","watch-build":"npm run pragmatist watch-build"},"devDependencies":{"pragmatist":"^2.3.17"},"dependencies":{"fs-extra":"^0.26.3","yargs":"^3.31.0"},"gitHead":"92b96a86d258b2f3b5f1f7aa8262177b262edef2","bugs":{"url":"https://github.com/gajus/bundle-dependencies/issues"},"homepage":"https://github.com/gajus/bundle-dependencies#readme","_id":"bundle-dependencies@0.0.2","_shasum":"4ce68cb0042322f3d5441b59bf28dc5e7fa989eb","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"gajus","email":"gajus@gajus.com"},"dist":{"shasum":"4ce68cb0042322f3d5441b59bf28dc5e7fa989eb","tarball":"http://registry-npm.ywwl.com/bundle-dependencies/download/bundle-dependencies-0.0.2.tgz","integrity":"sha512-nxyoED0aAZ0ROBMfNjm5gByrLpM5Uk2ZGuo4SnxqBeN0AsyggiiZnkdWco/16+VDk7RcShwjB5/0GWeGibFD3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFf7MXNY3yPmMgM4+/KJ9K4Z+wjVujo3xaN+YER/SjaWAiEAjcHc2qX872ZzV7UNtShX3Rsp1c/6t+hZ4MCAvs68RGg="}],"size":5113,"noattachment":false,"key":"/bundle-dependencies/-/bundle-dependencies-0.0.2.tgz"},"maintainers":[{"name":"gajus","email":"gajus@gajus.com"}],"deprecated":"https://github.com/gajus/bundle-dependencies#deprecated","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":1451930297093,"_cnpm_publish_time":1451930297093,"dist-tags":{"latest":"1.0.2"}}