{"name":"subpkg","version":"1.0.0","description":"Minimal utility for managing projects with sub-packages","bin":{"subpkg":"subpkg.js"},"repository":{"type":"git","url":"git+https://github.com/scheibo/subpkg.git"},"keywords":["minimal","package","sub-package"],"author":{"name":"Kirk Scheibelhut"},"license":"MIT","bugs":{"url":"https://github.com/scheibo/subpkg/issues"},"gitHead":"e7158d046623b41b53aa0c761729fa347038ba17","homepage":"https://github.com/scheibo/subpkg#readme","_id":"subpkg@1.0.0","_nodeVersion":"11.11.0","_npmVersion":"6.14.2","dist":{"integrity":"sha512-uVevSY+QxVJNlHgU/4cHEnwrVUMRkSEqvmUaQW12wtRVq2TiAjZCzEWDbVG4HlXULaL/ocF/hx1aRQkA/zFCRg==","shasum":"938ce6eeb5da8c70c7c6b34f463f0226e2020967","tarball":"http://registry-npm.ywwl.com/subpkg/download/subpkg-1.0.0.tgz","fileCount":4,"unpackedSize":3348,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaywhCRA9TVsSAnZWagAAaC4P/2HWvGr6f/QZpaVt67lG\ngxd4o8ThcP7CVOItuYc6F7yxfMlOOTSzWed0wGJqz2wSEftD/ppue5Zne7/Z\nFxogMh6ZcTUlfCM+aaAbi0cpJPkdO3bqAiodaD/t3jlzOcH3Y57lzG1n1XLL\nbK7BXXWNSeJMiYRE3GVnUO6ZDMRB9B6gclqf7XxuL5Cl8VVgXByr4y0D2wJH\n+WnjPyQO61d8ZFrDntVUHWtHKNo7BX9FjtBrzixVX/D+CebA6nQGTkWWGuPS\nBICrHrlO5fYQ+H4rIz6D1nPyu1eHTE889YsqZph1yRQ39T9hVfcwXea6fLSS\nLHWmQoUt1nOtLJ+cCNVKzZ2WwAs526Xaso5sgT6Nxm5awpInT9uTXDts1fsx\nEK3/43Zuf4mCzlOgR55/VRmlkAwr2bnONpWnbQgaKmA4WA9x4bh6b/9zpyPc\n/uhJ++GgCk19vm9QrSBPTQdiTGDGYrtD3iE6jYskD014X65RPpYT0EMGyMEs\nUAJ4hT2oixNYjn9zkti2xXijlT8tDDv5B4w6QCsapn86dRxtCeoDJSukUd1f\nnm8bPcmfMtzbu/JydsbCIa36NO5uHDDrxjyBbrQIFKcH1NTvKPKB0b1CgR8H\njTpGRQ4DAb0McWesFsTwbMPuGPhmTLewtlTdrclbUV0s8/kiQK+mOwU8M5Ru\nVQmx\r\n=SCmZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEAV+sHRAU/n/lFGKelI9EJKXaXIM8VY31OEPol0ody1AiEAywDfHy+KAkgQgCxlRUrg+5ReNUB3iINB+DRXPS+ASTI="}],"size":1860,"noattachment":false,"key":"/subpkg/-/subpkg-1.0.0.tgz"},"maintainers":[{"name":"kjscheibo","email":"kjs@scheibo.com"}],"_npmUser":{"name":"kjscheibo","email":"kjs@scheibo.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/subpkg_1.0.0_1584081953006_0.14092634296626017"},"_hasShrinkwrap":false,"readme":"# `subpkg`\n\n[![npm version](https://img.shields.io/npm/v/subpkg.svg)](https://www.npmjs.com/package/subpkg)\n\n`subpkg` is a roughly API-compatible implementation of\n[`subpackage`](https://github.com/dupski/subpackage) which has zero dependencies and trades support\nfor environment variables for several additional features like linking and version bumping. `subpkg`\nallows you to run scripts defined in `package.json` across multiple sub-projects and serves as a\nminimal alternative to [Lerna](https://github.com/lerna/lerna) or `pnpm`'s support for\n['workspaces'](https://pnpm.js.org/en/workspaces).\n\n## Usage\n\n```sh\n$ npm install --save-dev subpkg\n```\n\n```json\n{\n    \"name\": \"my-awesome-project\",\n    \"version\": \"2.5.1\",\n    \"subPackages\": [\n        \"packages/sub-package-1\",\n        \"packages/sub-package-2\"\n    ],\n    \"scripts\": {\n      \"postinstall\": \"subpkg install && ...\",\n      \"build\": \"subpkg run build && ...\"\n    }\n}\n```\n\n### Dynamic modules\n\n```json\n{\n    \"name\": \"my-awesome-project\",\n    \"version\": \"2.5.1\",\n    \"subPackages\": {\n        \"dirA\" : \"packagesA.json\",\n        \"dirB\" : \"packagesB.json\"\n    },\n    \"scripts\": {\n      \"postinstall\": \"subpkg install && ...\",\n      \"build\": \"subpkg run build && ...\"\n    }\n}\n```\n\nWhere `packagesA.json` is a JSON file specifying active/inactive packages in the directory `dirA`\nand both `dirA` and `packagesA.json` are paths relative to root directory:\n\n```json\n{\n    \"sub-package-1\": true,\n    \"sub-package-2\": true,\n    \"sub-package-3\": false,\n}\n```\n\nModules set to `false` will not be taken into account.\n\n#### Laravel Modules\n\nThis feature allows for seamless integration with the\n[nWidart/laravel-modules](https://github.com/nWidart/laravel-modules) project:\n\n```json\n{\n    \"name\": \"my-awesome-project\",\n    \"version\": \"2.5.1\",\n    \"subPackages\": {\n        \"modules\" : \"modules_statuses.json\"\n    }\n}\n```\n\n## License\n\n`subpkg` is distributed under the terms of the [MIT License](LICENSE).\n","publish_time":1584081953148,"_cnpm_publish_time":1584081953148,"dist-tags":{"latest":"4.2.0"}}