npm run build # Build the project (tsc + copy templates)
npm run dev # Watch mode for development
npm run start # Run the CLI after building
npm run prepublishOnly # Build before publishing
- TypeScript: Strict mode enabled, target ES2020, Node16 module system
- Formatting:
- Single quotes, no semicolons, 4-space indentation
- 120 character line width, ES5 trailing commas
- Imports: Use explicit .js extensions in imports (ES modules)
- Naming:
- camelCase for variables, functions, and methods
- PascalCase for interfaces, types, and classes
- Error Handling: Use try/catch blocks for file operations, handle cancelled user inputs
- UI: Use @clack/prompts for interactive CLI, picocolors for colored output
src/commands/: CLI command implementationssrc/helpers/: Utility functions and framework-specific codesrc/types/: TypeScript type definitionstemplates/: Template files for code generation