0.1.1 • Published 9 months ago

generator-zanpakuto v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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:

  1. Metadata configuration.
  2. TypeScript Support.
  3. App router with '/src' directory support.

Steps:

  1. Initialize next.js project with app router:
npm create-next-app@latest
  1. Select utility option, after entering yo zanpakuto.
  2. 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"
    }
  ]
}
  1. 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: dhimanmridul91@gmail.com.

0.1.1

9 months ago

0.1.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago