{"name":"midway-bin","version":"0.3.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":{"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 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","_id":"midway-bin@0.3.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.4","_npmUser":{"name":"czy88840616","email":"czy88840616@gmail.com"},"dist":{"integrity":"sha512-vIiLfcX/iN8Uhv3E4vu5e9QlgXX1QqEqCTNck2qo3cckmN/5npLnTIH9ZdkvxhgBwCqoAMnOx127w0gwyaBT8w==","shasum":"b98c7b7ce3197f43dc408081c59c390b8bdde062","tarball":"http://registry-npm.ywwl.com/midway-bin/download/midway-bin-0.3.2.tgz","fileCount":14,"unpackedSize":10283,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbh6u8CRA9TVsSAnZWagAA4M0P/RAzYLMgkw4sevmZlFbm\nq0p+WqcNgKSRxUME9EHmj/7WhuFo60DkrJZcku0uDV2bg6EgD7O9MQTYjlHO\nSrh2UKal+3ly1xk16Ne+tdl8W7JlO0xCoC/RU2kR2atvjPVpkgigxcWQ61s1\nVeHjSfF/xjZZCjRQCg+cxGlQavnqI4BwcsagjhdIxgOXT7vQL9r4CiNHxsp9\nA8YDQ6/Rlx+WXBOSSerizhy1gzSYG7vf8eq2gpBKuLDaQHBUcVjo2fGj5e7t\nSrph5o1mv6tR4/0gVzC4+NZz4k/Ad3FcbTpwYJ022W4nbwXc4IC4LMk7iKYK\n5XN/OGFG9VHBqUa8gkhVM/hHUDIsktZuZ3N1B9WmjTsw4n8g0GjM7S37G4Iy\nvHhb0S4a7vomtH/dlKajqH0gRQ9vYjs7a05ZwBBWtmHrCXjQ117TN7nbXK0A\nvRHvOipFf8I/jLsF/sGdzfg1eRUy3a3FZWbsyMuM+xTcecnV4s/cykgvyjGn\nyWxHP5h2gIf2UdZcd58GUoAcXvK96CNd79bVJ9H0oZu5xfnYYfNVDkS3D6km\n29RBPKEHuSv++ksFnmJtGgGPdsKnw0lJlg8Toj9UTFgKG/H6RTQrpWe/hY58\ndQVA7olFyg+ORWk+eVlXV3JeWvtm9857eGhsc/0AYCPMdQyk2yH83juD9+KV\nJSyW\r\n=j7LM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9rbAB0nls83euVZew4kRe4QSxLaRUcFMi3jIsk2XrxQIgLkU4v40jxI1uERnbVXNA//FNFoedXYaCspt15ljp6zY="}],"size":3276,"noattachment":false,"key":"/midway-bin/-/midway-bin-0.3.2.tgz"},"maintainers":[{"name":"czy88840616","email":"czy88840616@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/midway-bin_0.3.2_1535617979899_0.6724688008956556"},"_hasShrinkwrap":false,"publish_time":1535617980064,"_cnpm_publish_time":1535617980064,"dist-tags":{"beta":"2.2.4","canary":"0.2.0-alpha.1663751b","latest":"1.20.3","next":"2.0.15"}}