nextisan
v1.0.0
Published
A CLI tool for generating feature folders and files in Next.js projects
Maintainers
Readme
Nextisan
A CLI tool for generating feature folders and files in Next.js projects, inspired by Laravel Artisan.
Installation
```bash npm install -g nextisan ```
Or use it directly with npx:
```bash npx nextisan ```
Usage
Create a new feature
```bash nextisan create:feature auth ```
This will create a new feature folder with the specified components.
Create a new component
```bash nextisan create:component button --path=src/shared/components/ui ```
Create a new service
```bash nextisan create:service user-service --path=src/features/user/services --server ```
Create a new hook
```bash nextisan create:hook use-auth --path=src/shared/hooks ```
Create a new type definition
```bash nextisan create:type user-types --path=src/shared/types ```
Create a new test file
```bash nextisan create:test user-service --path=src/tests --type=unit ```
Create a new page
```bash nextisan create:page dashboard --path=src/app/admin --layout ```
Create a new API route
```bash nextisan create:api users --path=src/app/api ```
Options
Each command has its own set of options. Use the --help flag to see the available options for a command:
```bash nextisan create:feature --help ```
Interactive Mode
All commands run in interactive mode by default, prompting you for additional options and configurations.
Documentation
For more detailed documentation, visit the documentation site.
License
MIT
