VS Code Extension for new feature development boilerplate code in Next.js.
Open Command palette (Command/Ctrl + Shift + p)
-> New Domain
input
- pages name
- domain name
- if project is monorepo, select project
You can change to the extension's settings through VS Code settings. You can customize
A list of folders to create, excluding pages, where $domin
is the input domain name value.
array
[
"src/features/$domain/components",
"src/features/$domain/types",
"src/features/$domain/hooks",
"src/features/$domain/queries"
]
Folder names containing projects when using monorepo
array
[
"packages",
"apps"
]
Path to the folder directory where the page will be created. $dir is the input page name value.
string
"src/pages/$dir"
The name of the pages files.
string
"index"
Extension of pages component.
enum
tsx
(default)js
jsx
Please report here