{"name":"umi-plugin-routes","version":"0.1.3","main":"./lib/index.js","repository":{"type":"git","url":"https://github.com/umijs/umi/tree/master/packages/umi-plugin-routes"},"homepage":"https://github.com/umijs/umi/tree/master/packages/umi-plugin-routes","authors":["chencheng <sorrycc@gmail.com> (https://github.com/sorrycc)"],"bugs":{"url":"https://github.com/umijs/umi/issues"},"files":["lib","src"],"dependencies":{"is-plain-object":"^2.0.4"},"_id":"umi-plugin-routes@0.1.3","_npmVersion":"6.0.0","_nodeVersion":"8.4.0","_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"dist":{"integrity":"sha512-ZDeWzIdzQfXjQavQojgh35uGNwt4TtM9SHtm9bKUR0WIDiy4nkmy3GlirdInbrzfT3Zzn3y+IMBGeII4+7Otkw==","shasum":"6e1bc2acc9f7f8e3f3634428184bbd8dae7f67bd","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-0.1.3.tgz","fileCount":3,"unpackedSize":4868,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa+le1CRA9TVsSAnZWagAA+zYP/ipbtcXVON8M9Nzfx7cF\nxSsRcqFutVn3TjdBr0yrSOZBis9toRi8BkgOaIFmwwMlC6tNvi7uqFkKffok\n3LD22jKiUsJaedqj+rGwbL0t9CTmp7UHPfIAvmSbDqDiFUZcFCsZ5Y41ZsSL\nem4B0gyvxW8JsR4yUzqIVp1FIF+5Cs0ADDtD7swlpfYWNUeKxwiCYt0fTkSW\nq4xnB/nHQSonP6fISGv+n0QB3fNIxyeGPttBI+LEUBmlmX9pp+pxYwibtD1o\nWVgFEQ8JRqA+NQ6S+5qi8Q3lWQv6pZxWDMn2IwT6Sr/ld9bDQ9SVgFp0IyRH\neEgq7qKSMUZxXx9kqtIp0x2gQQ4lGSFUp70pW05Lt83qy7/s41vmlP8ocNva\nyaztOPvJNb2KFQlIP6e0OSYcGU95G7Ub8i+6cu1C1tNxlQWFjC18jXbHnKmr\nP7c/t/jKMClW7DGlH8Y9Bs2kfpBb2b3nQdXAp4V1n+Tx7UBXoLPOp5vSee4y\n/unUkF/yIk7Tvq4/ITeUdYnL2bCBOu9I64gDfAmKOtoOxn2aVkTILmav2lS/\nPH1uRVpgpOOrezmA83J7BSvtNikSuWSRBtUK6mk4V3/Lul8cwkrmFvNh+GZG\nnKJ1pjWNEAue3v+MIUrUOxp9BcFdcC9F8/EhStoAPn2x8Lm41A0LtY6RE49Y\nU2x6\r\n=JkVS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAbdsr5+cSLCtUvmViYgL0+TkgzjUVyhA9ViQeKDwTWcAiB19WwYTTrrtkSRXfXEvgHD/AtupSFCC1QVo+QUhRs2MQ=="}],"size":1430,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-0.1.3.tgz"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-plugin-routes_0.1.3_1526355893169_0.14604110799702608"},"_hasShrinkwrap":false,"readme":"# umi-plugin-routes\n\nroutes modification plugin for umi.\n\n---\n\nSuggest to use together with umi-plugin-react, see our website [umi-plugin-react](https://umijs.org/plugin/umi-plugin-react.html) for more.\n\n---\n\n## Usage\n\nInstall via yarn or npm.\n\n```bash\n$ yarn add umi-plugin-routes\n```\n\nConfigure it in the `.umirc.js`.\n\n```js\nexport default {\n  plugins: [['umi-plugin-routes', option]],\n};\n```\n\n## Option\n\n### option.exclude\n\ntype: `Array(RegExp|Function)`\n\ne.g.\n\n```js\n{\n  exclude: [\n    // exclude all the `models` directory\n    /models\\//,\n    // exclude ./pages/a.js\n    (route) { return route.component === './pages/a.js' },\n  ],\n}\n```\n\n### option.update\n\ntype: `Function`\n\ne.g.\n\n```\n{\n  update(routes) {\n    return [\n      { path: '/foo', component: './bar.js' },\n      ...routes,\n    ];\n  }\n}\n```\n","publish_time":1526355893234,"_cnpm_publish_time":1526355893234,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}