{"name":"midway-bin","version":"1.2.0","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":{"egg-bin":"^4.10.0","fs-extra":"^7.0.1","globby":"^9.0.0","mz-modules":"^2.1.0"},"devDependencies":{"co-mocha":"^1.2.2","coffee":"^5.2.1","eslint":"^4.13.1","eslint-config-egg":"^7.0.0","mm":"^2.4.1"},"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":"f3f9aa800593b6d5fb1b80adc77a26d235f47d41","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 \nadd `build` command for new midway.\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\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## 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@1.2.0","_nodeVersion":"10.9.0","_npmVersion":"lerna/3.10.7/node@v10.9.0+x64 (darwin)","dist":{"integrity":"sha512-xZ33TsJRRa+MWTk+hNJHDB7PglKk4eyuPFtr3B7SQ50CUaM/xjiIur4Hd12K80HVcWJ4mWC4NpHlf7K2ghY3iw==","shasum":"626b1796787aca53b558c709bbbfa6107de79d25","tarball":"http://registry-npm.ywwl.com/midway-bin/download/midway-bin-1.2.0.tgz","fileCount":15,"unpackedSize":14216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcUB+GCRA9TVsSAnZWagAA6/AP/3OkgeWwmfNCemYn2/1m\n2sIfrhDLubh21gAMABvMHy4EzJxNPBXJs7Wl9Klksj1IjPgYcXplDkbOoyJw\nuUzifQvzmaTmAuUDTIsJyrjdzKGm6s6h9jFvTwBe0903DKl9ahxkmKM6fgm6\nFKPe6W5zqNFL5djetE6mkumZ/EGlAuGIA7spN/zHMHNyO8QbZy11PIPUUMeh\nyAhV6f/vLTcax8I9avlL332O9IPG23BzbbUkhpHgXyfjjsyCHnEKMNXxMPxJ\nyCVXJc1gV4Qz76emoITeoK9P01s+BQq8wpDd95fEOs2fL+bdQ4iS9Hs0Ikjv\n9KGi35jOInplDHTQs+JUdm1FRYdwLuut5ynlHSEt4XXu3Ya6S5Et1dxu//YQ\nC0Ntipy0BErXr9cgK/5y/iHg7ASJFBwvnnM3RY7QrXb9OAETmNecQy2zNz5N\n1xd2/vVAE4gOtNOSQupSbQHYX3pP/7CvJFmpvA6DAdG7a/mxmgSrf+gq7U3O\n4I1kJueH6MOtsZhC6D6djg0/CHaLmvn8JzqY0tGW13WQILjAxllY4a7M0J30\nYDW4DQ+Wnu/2/EKV5B+8lOt2HwzWJ/J0j1oNutkPaaOLb8YsyCETJS955ZRV\ndtGUL/k431qMbsFdsfmJXyucV2sLLTgnQaMKopSL2vwsDoBxRpfChExkCKdY\noko6\r\n=gvm0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFRtqVhcPdt+gU1WgykukIdluKZjHEvhR5f7mrY7mbWEAiB2PGqCHXMzFxZF0DkYVGRZNnDkPpbUwdD4ncjn5DNn6A=="}],"size":4653,"noattachment":false,"key":"/midway-bin/-/midway-bin-1.2.0.tgz"},"maintainers":[{"name":"czy88840616","email":"czy88840616@gmail.com"}],"_npmUser":{"name":"czy88840616","email":"czy88840616@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/midway-bin_1.2.0_1548754822347_0.8945559312160865"},"_hasShrinkwrap":false,"publish_time":1548754822470,"_cnpm_publish_time":1548754822470,"dist-tags":{"beta":"2.2.4","canary":"0.2.0-alpha.1663751b","latest":"1.20.3","next":"2.0.15"}}