Purpose
Creates a complete React page directory structure (page.tsx, index.ts, styles.css) with routing integration via a helper script.
When to Use
- When adding a new page, view, or route handler to the application.
- When establishing a consistent layout and style pattern for new sections.
- When needing to rapidly scaffold the boilerplate for a complex page component.
Process
- Page Naming: Get name in
PascalCase(e.g.,UserProfile). - Environment Prep: Ensure the helper script is executable (
chmod +x). - Execution: Run
create-page.sh {{PAGE_NAME}}. - Reporting: Display script output and file paths to the user.