{"name":"midway-bin","version":"1.0.2","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.9.0","fs-extra":"^7.0.1","globby":"^8.0.1","mz-modules":"^2.1.0"},"devDependencies":{"co-mocha":"^1.2.2","coffee":"^5.2.0","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":"1925bac6283266f71604d46afe47e46378d9ed42","_resolved":"","_integrity":"","_from":"file:midway-bin-1.0.2.tgz","readme":"# midway-bin\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.0.2","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"czy88840616","email":"czy88840616@gmail.com"},"dist":{"integrity":"sha512-XYFNB1fh+9UTuAY/qFpEbFlzWa8xwbxQ0nhp7QSglVhs0EczCu2XMAG70FLXBYHB6hMeD+RjRLCWLVE0I1bFfA==","shasum":"34e40c6467aca1e6083391a17cf25d41478d46a6","tarball":"http://registry-npm.ywwl.com/midway-bin/download/midway-bin-1.0.2.tgz","fileCount":15,"unpackedSize":13660,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcI1LNCRA9TVsSAnZWagAAnuAP/1Cqc51499E6GZlvuZq6\nvM7ec7Lw8e9VMTlvz9wSYdYv78OAmylJ1D6FrHhhqxzbd2WI7Ql2nqNzFTgj\n1/yvcPQAsUcwrDC0DR1IgHYhctg0cYhwYTkUxmRx3v4ZCgCgBejn9wm04cmx\nt2uU4fPxJwVGiyc3zbGoWGEdMjJHyclTzl3jeDdXrI6zCJhgMKh/dhIcF0Ic\ntDCLzQi8vUtPovCKZEs8FJW/nF3ofUSNEqsSBXtTwXiO+n7uwjdlHZrHo6xt\ndTaBzBviIZutIN4ZCDnCbwwm7aBqIw9+7C9UtlPk+EyKf5baP8dmMobJfMYs\nzaAeLXlPqwQ1LWnR3Ypo0f9TuM85GJkMN+97Wb/rmfZiDrEfK0/TeYvbX2SS\nI3VFtShEuotwCPWTwh2vmfr1Iyw4kAbs4+Ve90CbnDhfxupE+6GkeLAP9k+6\nXUA+oulpfirGJ65ZVb3BfTiD4S0c9UKNRWM5xwJBHV+kJzpJXFFiJIs20FVe\npILCktqYRLwjJ6DmitbuUd1N7cqydW9JPRt3+VoSqLeMgPLWIe+0GlK/HSzM\nugKLE3xDv8r0962Jivq4Ds0zIxuMZH7QcurdKXRnam50Ds3AaX5zyt7o/aLg\nAQ/6gV4PdYa7WSCzlHCguLZpagPFtnb42V9tRR4qMK5ZtzepiY+ULgXtzV70\nF9jo\r\n=WPU1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFY2ATxwGaWdWdN/E77uGe73uwWSS8BhZeJ+lUK7FpEzAiEA70RzF1VsNOdFcUZeD1TqPqtJpmSjOtOPdx7SuUPBqyI="}],"size":4502,"noattachment":false,"key":"/midway-bin/-/midway-bin-1.0.2.tgz"},"maintainers":[{"name":"czy88840616","email":"czy88840616@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/midway-bin_1.0.2_1545818829192_0.7520673830213889"},"_hasShrinkwrap":false,"publish_time":1545818829293,"_cnpm_publish_time":1545818829293,"dist-tags":{"beta":"2.2.4","canary":"0.2.0-alpha.1663751b","latest":"1.20.3","next":"2.0.15"}}