0.4.0-2 • Published 4 years ago

react-scavenger v0.4.0-2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

@react-scavenger

simple auto generate route.tsx file from src/pages

npm npm npm

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

namedescriptiontypedefault
entrydefault home pathnamestring/
ignoresignore pages from generatestring[] 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