@nx/next:page
Create a Page for Next.
Create a Page for Next.
Generate a static page named MyPage at apps/my-app/pages/my-page/page.tsx:
❯
nx g page apps/my-app/pages/my-page
1nx generate page ...
2By default, Nx will search for page in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/next:page ...
2Show what will be generated without writing to disk:
1nx g page ... --dry-run
2The path to the directory where the page will be generated. Relative to the current working directory.
cssThe file extension to be used for style files.
falseWhen true, the component is exported from the project index.ts (if it exists).
falseGenerate JavaScript files rather than TypeScript files.
The page symbol name. Defaults to the page directory name.
falseWhen true, creates a spec.ts test file for the new page.
falseSkip formatting files.