0.4.0-2 • Published 6 years ago
react-scavenger v0.4.0-2
@react-scavenger
simple auto generate route.tsx file from src/pages
NOTE
react-scavengernot generate nest routes
react-scavengerwill output<path>/src/route.tsxfrom tpl file
install
npm install react-scavenger -gconfig
available configs in
.scavengerrc
| name | description | type | default |
|---|---|---|---|
| entry | default home pathname | string | / |
| ignores | ignore pages from generate | string[] or undefined | [] |
path rules
pathname2routepath similar with next.js
pages/index->/pages/blog/index->/blogpages/blog/[slug]->/blog/:slugpages/blog/[slug]/time->/blog/:slug/time
usage
react-scavenger create0.4.0-2
6 years ago
0.4.0-1
6 years ago
0.3.1-0
6 years ago
0.3.0-1
6 years ago
0.3.0-0
6 years ago
0.4.0-0
6 years ago
0.2.0-0
6 years ago
0.1.0-2
6 years ago
0.1.0-1
6 years ago
0.1.0-0
6 years ago
0.0.3-3
6 years ago
0.0.3-2
6 years ago
0.0.3-1
6 years ago
0.0.3-0
6 years ago
0.0.2-3
6 years ago
0.0.2-2
6 years ago
0.0.2-1
6 years ago
0.0.2-0
6 years ago