next-dir

1.0.3 • Public • Published

next-dir

CLI tool for creating route segments in NextJs projects.

Quick start

Run the command at the root of your project.

npx next-dir [directory-name]

Or if you prefer installing it globally

npm i -g next-dir

next-dir [directory-name]

This command will create a directory with the following files inside the app directory.

├── page.tsx
├── layout.tsx
└── loading.tsx # Optional, specify using the --lg flag

CLI Options

  • directory-name: Defines the folder name.

  • --lg: Optional flag for including loading.tsx file.

Readme

Keywords

none

Package Sidebar

Install

npm i next-dir

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

6.25 kB

Total Files

15

Last publish

Collaborators

  • johurul_haque