0.4.0-2 • Published 4 years ago
react-scavenger v0.4.0-2
@react-scavenger
simple auto generate route.tsx
file from src/pages
NOTE
react-scavenger
not generate nest routes
react-scavenger
will output<path>/src/route.tsx
from tpl file
install
npm install react-scavenger -g
config
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
->/blog
pages/blog/[slug]
->/blog/:slug
pages/blog/[slug]/time
->/blog/:slug/time
usage
react-scavenger create
0.4.0-2
4 years ago
0.4.0-1
4 years ago
0.3.1-0
4 years ago
0.3.0-1
4 years ago
0.3.0-0
4 years ago
0.4.0-0
4 years ago
0.2.0-0
4 years ago
0.1.0-2
4 years ago
0.1.0-1
4 years ago
0.1.0-0
4 years ago
0.0.3-3
4 years ago
0.0.3-2
4 years ago
0.0.3-1
4 years ago
0.0.3-0
4 years ago
0.0.2-3
4 years ago
0.0.2-2
4 years ago
0.0.2-1
4 years ago
0.0.2-0
4 years ago