{"name":"midway-bin","version":"0.1.3","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":{"coffee":"^4.1.0","egg-bin":"^4.7.1","fs-extra":"^6.0.1"},"devDependencies":{"co-mocha":"^1.2.2","eslint":"^4.13.1","eslint-config-egg":"^7.0.0"},"engines":{"node":">= 8.0.0"},"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:\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\nAll the commands extends from egg-bin\n\n- dev\n- test\n- debug\n- cov\n- autod\n- pkgfiles\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## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md","_id":"midway-bin@0.1.3","_npmVersion":"5.5.1","_nodeVersion":"8.9.2","_npmUser":{"name":"czy88840616","email":"czy88840616@gmail.com"},"dist":{"integrity":"sha512-bak737xzCmlO+Ze06bupk58JIfAJuCGSgLGEwQA9HduOkXP+xNuVMw6CU1+2jGdreyY6wVg81CbPOZ9w3ZPUAg==","shasum":"e7b773784053ba081bc92653e5472746462873b8","tarball":"http://registry-npm.ywwl.com/midway-bin/download/midway-bin-0.1.3.tgz","fileCount":35,"unpackedSize":16716,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbXoWFCRA9TVsSAnZWagAAbnMP/1wiox0KQ3ed6uMof+X2\n9Dwdj9pI81MozAIsi2m7iKE97Nv36LPEWijG0749hA1ArGbA6qWE1r+mgqP2\nEMk3vorYTPge8obODKnyU0dEztx+raoZX6qv1fg8X8bzzX9ipllqrEcYy6xC\nl62DCq7aB3ZBSs736wSN83CIVIVC86zONdGPOj8qSc6KO2+bPX5gswk5NImS\nqr4zyeMu+j8LRi5XeiLH+EJTHqljVf64q/b9QTvPdMv1ZrXtHFAaPZi0C3Sq\nhowuSSDbC6g4r7JInI3yWCF3CrIwwZciIa7ewHX+rtJDRj9u/C15ECCWmUIN\nwUeaAG/zujuay7zqnrdZwpzig+2JGfqXYfSqm/B02/3dqhu1qxNL1f8xzLGh\nKQQgfAnl4j+YkS8gSWO44HD+iL1OJJTTZWJCn6U2FZ/a07xdZP4ktjkfZEET\ntgPzK54dfQRkeYIxYPkCS9oUOm+yJ/6/O6fl2E4B5rh4CfyTcGVt19fXFJF1\nHgGDp742dMZP1EzDSO7tTJJhgxGeJa6qMaGmSBtmxYkgcRFHVi6tDVHJa34D\n+6XF7buq8ik/P0XRZpiTuQQzOy8BnzmHzk/c/uBhLhoP0Y1uleF+O153HHlJ\nFdM0uFfj2/A/rcy/C1A9qNXB2RsL7rl33qnpFANpSAgfEkoh6hSjv3OpzXXl\nrkkp\r\n=Wgcp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpcyiZDjUg4HgLqO9yIYlxB4VvOvBv3+6YBhiW3kvgwgIhAKQ77mYkKxCM59jonoNojClTuiVBPsvFK5t1Ge38iAEq"}],"size":4688,"noattachment":false,"key":"/midway-bin/-/midway-bin-0.1.3.tgz"},"maintainers":[{"name":"czy88840616","email":"czy88840616@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/midway-bin_0.1.3_1532921220891_0.6989664017912216"},"_hasShrinkwrap":false,"publish_time":1532921221019,"_cnpm_publish_time":1532921221019,"dist-tags":{"beta":"2.2.4","canary":"0.2.0-alpha.1663751b","latest":"1.20.3","next":"2.0.15"}}