{"name":"umi-plugin-routes","version":"1.0.5","main":"./lib/index.js","devDependencies":{"umi-types":"0.1.2"},"repository":{"type":"git","url":"git+ssh://git@github.com/umijs/umi.git","directory":"packages/umi-plugin-routes"},"authors":["chencheng <sorrycc@gmail.com> (https://github.com/sorrycc)"],"license":"MIT","description":"routes modification plugin for umi.","bugs":{"url":"https://github.com/umijs/umi/issues"},"homepage":"https://github.com/umijs/umi#readme","_id":"umi-plugin-routes@1.0.5","_nodeVersion":"10.13.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-Tlbn1Y8yUzn0tnsyQnI6pNfZQJo6XNuVQTVgSXwg7z8SEH4TRbnWmONh728ASJ7gLM6JVcC0YfJbLS5WVR0a5Q==","shasum":"56909d03ff0b1c0a40658dcf81cd3cddca708d5f","tarball":"http://registry-npm.ywwl.com/umi-plugin-routes/download/umi-plugin-routes-1.0.5.tgz","fileCount":8,"unpackedSize":7757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcbRBWCRA9TVsSAnZWagAAG1cP/1zBX3YmNPR/7y6u5P1N\nk1daJEq+U9GJ3uxQbx5h6RUWcQ+lGx18K0f03I+DkNRIObhLgzjnvKhy7isV\nrhk/WWuJJXBAF5VEy8HLWmVM0WAEdFWnja1eYNTDFTUIyxD2HKp7szNd6Uel\n6+j41klnzfSfD8D+oDsHncV803M+Da4BVPQ3MnLyDJPT/WGAZAJmB+VqsXIj\npqcjXwmm+ex+ZK+pdOKCc3Gac5DhZjo3Kr8TNsMRlbHTpiQ/22zI63RqrGIa\nwC2usy2HFmwAVmPNvxAzknzl3/FcRkg+PksGFFhdwcLnawyMhV13HKwYmSwI\nI6vxPIZo9TfshjIkIdrLWvx0IGmjdfEr769n0wfW1FzTalUZ+B85Qoq6YfGk\nrbnJrmv7EU034Mwma08/u1PGh0lG/GHV0WACry/OlqLCIOQ/MfTkTDGF+Poq\nn7xPz1Z/bXiEV713f/BYFq5lzBLcMHC4aVtPBcTKDRxN1GIoZCaux+XP0w5V\nIUWVm+Cj7cE6GPs7H+TTLZu5/nPOMkFvfg+1KrPA1pm+hPpsv0bSK3XYSN0P\nAwzZpYkhllaUpZLhhloHMu+LpaZjjrRJj/5P07kyyvKL1lKNckAv/ZiU3WOm\nH4AoFZ66lwvEl+O1HR/kQSF9ww91QaUY7UM7pGLBSh5/7eAbG2/i9ZwNm16v\nWZcw\r\n=7HJS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE3vFOC5pKNR+eeamGks1gmq/AUawRrgZthybyL2FTEwAiEAlTtKPWt6R1MeIlXBAdT4sdlkqsrAzwUMWY0W8Rm/TBg="}],"size":2251,"noattachment":false,"key":"/umi-plugin-routes/-/umi-plugin-routes-1.0.5.tgz"},"maintainers":[{"name":"sorrycc","email":"sorrycc@gmail.com"}],"_npmUser":{"name":"sorrycc","email":"sorrycc@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/umi-plugin-routes_1.0.5_1550651477829_0.02505447470017086"},"_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":1550651477957,"_cnpm_publish_time":1550651477957,"dist-tags":{"latest":"1.8.9","next":"1.8.6-beta.1"}}