generator-zanpakuto
v0.1.1
Published
Forge those templates onto your folder structure.
Downloads
2
Maintainers
Readme
Zanpakuto
Forge templates through scripts.
Installation
npm install -g yo generator-zanpakuto
Then generate your new project:
yo zanpakuto
Templates:
- Express hello world template
- Express mongoose boilerplate.
Utilities
Usage:
Next.js app router
Features:
- Metadata configuration.
- TypeScript Support.
- App router with '/src' directory support.
Steps:
- Initialize next.js project with app router:
npm create-next-app@latest
- Select utility option, after entering
yo zanpakuto
. - Initialize a
routes.json
file in the next.js project root directory in this way:
{
"routes": [
{
"path": "/signup",
"name": "Signup"
},
{
"path": "/login",
"name": "Login"
},
{
"path": "/dashboard",
"name": "Dashboard"
},
{
"path": "/api/signup",
"name": "Signup Route"
},
{
"path": "/api/login",
"name": "Login Route"
}
]
}
- You can specify whether to use typescript and /src directory according to the project.
API Reference
Thank You
You can star the repository, if you like my work. Contact me at: [email protected].