{"name":"midway-bin","version":"2.0.0-beta.12","description":"Midway Command Tools","main":"index.js","bin":{"midway-bin":"bin/midway-bin.js","mocha":"bin/mocha.js"},"scripts":{"lint":"eslint .","pkgfiles":"node bin/midway-bin.js pkgfiles","test":"npm run lint -- --fix && npm run test-local","test-local":"node bin/midway-bin.js test -t 3600000","cov":"nyc -r lcov -r text-summary npm run test-local","ci-test-only":"TESTS=test/lib/cmd/cov.test.js npm run test-local","ci":"npm run lint && npm run pkgfiles -- --check && npm run ci-test-only && npm run cov","autod":"node bin/midway-bin.js autod"},"keywords":["midway","bin"],"license":"MIT","dependencies":{"@midwayjs/ncc":"^0.22.0","co":"^4.6.0","egg-bin":"^4.11.1","fs-extra":"^8.1.0","globby":"^10.0.1","jest-environment-node":"^24.9.0","mz-modules":"^2.1.0","terser":"^4.6.3","typedoc":"^0.14.2"},"devDependencies":{"co-mocha":"^1.2.2","coffee":"^5.2.1","eslint":"^6.1.0","eslint-config-egg":"^7.0.0","mm":"^2.5.0"},"engines":{"node":">= 8.0.0"},"author":{"name":"Harry Chen","email":"czy88840616@gmail.com"},"repository":{"type":"git","url":"git+ssh://git@github.com/midwayjs/midway.git"},"gitHead":"0bbc2472b2abb059fa04f6721f67866cfedbe743","readme":"# midway-bin\n\n[![Package Quality](http://npm.packagequality.com/shield/midway-bin.svg)](http://packagequality.com/#?package=midway-bin)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/midwayjs/midway/pulls)\n\nthis is a sub package for midway.\n\nmidway developer tool, extends [egg-bin].\n\n---\n\n## Install\n\n```bash\n$ npm i midway-bin --save-dev\n```\n\n## Usage\n\nAdd `midway-bin` to `package.json` scripts like [egg-bin], but just replace command by `midway-bin:\n\n```json\n{\n  \"scripts\": {\n    \"dev\": \"midway-bin dev\",\n    \"debug\": \"midway-bin debug\",\n    \"test-local\": \"midway-bin test\",\n    \"test\": \"npm run lint -- --fix && npm run midway-local\",\n    \"cov\": \"midway-bin cov\",\n    \"lint\": \"eslint .\",\n    \"pkgfiles\": \"midway-bin pkgfiles\",\n    \"autod\": \"midway-bin autod\",\n    \"ci\": \"npm run lint && npm run autod -- --check && npm run pkgfiles -- --check && npm run cov\"\n  }\n}\n```\n\n## Command\n\n`midway-bin` add new command\n\n- build\n- clean\n- doc\n\n### build\n\nbuild typescript source file to dist directory like `tsc`  and copy js/css/html file to same place.\n\n```bash\n$ midway-bin build\n```\n\n#### options\n\n- `--clean -c` clean dist directory before build\n- `--entrypoint <entrypoint-file>` bundle the output with the specified file as entrypoint\n\n#### copy static file\n\nwe can copy static file when ts file compiling.\n\n```js\n// in package.json\n  \"midway-bin-build\": {\n    \"include\": [\n      \"app/public\",\n      \"app/view\"\n    ]\n  }\n```\n\nit will be copy `src/app/public` to `${outDir}/app/public`.\n\nThe `outDir` field is configured in the `tsconfig.json` File, see [compiler-options](https://www.typescriptlang.org/docs/handbook/compiler-options.html).\n\n### clean\n\nclean a dist directory by build\n\n```bash\n$ midway-bin clean\n```\n\n### doc\n\ngenerate application document by typedoc\n\n```bash\n$ midway-bin doc\n```\n\n#### options\n\nlike typedoc, see [link](https://typedoc.org/guides/arguments/)\n\n- `--options [typedoc.js]` Specify a js option file that should be loaded.\n- `--out -o [outPath]` Specifies the location the documentation should be written to.\n- `--mode -m` default value is `file`, Specifies the output mode the project is used to be compiled with.\n- `--exclude` Exclude files by the given pattern when a path is provided as source.\n- `--theme` default value is `default` Specify the path to the theme that should be used.\n- `--excludeExternals` default value is `true` Prevent externally resolved TypeScript files from being documented.\n- `--ignoreCompilerErrors` default value is `true` Generates documentation, even if the project does not TypeScript compile.\n- `--hideGenerator` default value is `true` Do not print the TypeDoc link at the end of the page.\n\n> Tips: If the options parameter is supplied, the other default parameters are invalid\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/midwayjs/midway/issues"},"homepage":"https://github.com/midwayjs/midway#readme","_id":"midway-bin@2.0.0-beta.12","_nodeVersion":"13.3.0","_npmVersion":"lerna/3.20.2/node@v13.3.0+x64 (darwin)","dist":{"integrity":"sha512-rxRAvlaydhw66crfXo1iUPnFkOibOUF1Cvv48fDACgczpqzNDTyEcsCu9Usl4NjWgogPxT659Wh5+1WWJ/15Pg==","shasum":"7d5e296a433692cacb9f7f8cbeec6516cd5dd70c","tarball":"http://registry-npm.ywwl.com/midway-bin/download/midway-bin-2.0.0-beta.12.tgz","fileCount":18,"unpackedSize":35207,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVK5lCRA9TVsSAnZWagAA7pQQAI0CIqbF7GrbJiGfaACQ\nzdI/DLNjMSep2kLfcut0gfXqbYsUD/xX7vTrnqcxfv7A2wU3kJwYzCx9Jovf\nLcZsu0GSr/9LxzYKM7Fz7CCDxEoRpz14BiRGqrSw9MnT6q24GHbF3wT0SNwk\nqvdLo82fSAtKc4P+SHibqB796fAPwI9IcQL9ROm7Y//c9lfYDu1F4wju3L6Y\n161sE/ls1rN/HAiy3s7yza1VQ1sGTV5pMDick8NJOxTExsKldljiBmhNGZNs\nBxdvXvcfsCGs3Iih2OTAzmZQIU/c6z4DvOFZ45Ne2xWDu88H72nHTrBSi4C7\nZhiFC/hiOHtylRb/O40GrNBSaE6yErnmor0SaVxMoogcMpXypQhH+Ww/ywaA\nM8iuRLkUv6dMmrlUg2jBDqW9a+ErI8Byb6AIQQrxhGfnBlZ9SG0iA3gWM5h9\nvk9QuvE+gY62XdqpoPhYmv5G05ocW4zp7zXQr127S/uaeEcHtQCC9wtiJiHw\nqcvg6xZUHc1IyH1g5Oq8zuxO5NF9sJ4h5eKpX3jbx5zeVWHRBEt4WNxDjzqh\nKKS/WCtik+s1LeTQ9HXPu7YgX9uIhcOlqG4bpAVjz8WNiMxRa8uFPlD0QBES\n2+L7kzQRvTOHUGYjsXI4+LKGNfe9ohz19uBvDb2iPd8I8bdEzY1hJsfZZetC\n6WpQ\r\n=vdIP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFCx3KCRNnrJQDxKLKbMygjo5wHlkUfm7CAPkvfrki6HAiEAi83xwayDXsfO68JV/gLcOT4k/ODk5hqdXtS9I+ixfxo="}],"size":9719,"noattachment":false,"key":"/midway-bin/-/midway-bin-2.0.0-beta.12.tgz"},"maintainers":[{"email":"czy88840616@gmail.com","name":"czy88840616"},{"email":"lellansin@gmail.com","name":"lellansin"}],"_npmUser":{"name":"czy88840616","email":"czy88840616@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/midway-bin_2.0.0-beta.12_1582607972864_0.7534209657709832"},"_hasShrinkwrap":false,"publish_time":1582607972993,"_cnpm_publish_time":1582607972993,"dist-tags":{"beta":"2.2.4","canary":"0.2.0-alpha.1663751b","latest":"1.20.3","next":"2.0.15"}}