react-vtu-cli
v1.0.9
Published
Interactive CLI to scaffold React + Vite projects from templates
Maintainers
Readme
react-vtu-cli
Interactive CLI to scaffold React + Vite projects from pre-built templates and realistic checkpoint stages.
Installation
Global install
npm install -g react-vtu-cliThen run:
react-vtu-cliRun with npx
npx react-vtu-cliUsage
Run the command and follow the prompts:
- Select a template.
- Select a checkpoint stage.
- Enter a project name.
- Confirm creation.
The CLI creates a new project directory, copies the selected template stage, and updates the project package.json.
Available templates
The package includes 10 React + Vite templates:
program1program2program3program4program5program6program7program8program9program10
Each template includes 5 checkpoint stages:
- Stage 1: rough draft
- Stage 2: early refinement
- Stage 3: cleanup pass
- Stage 4: near-finished draft
- Stage 5: final pass
The CLI shows these as template-specific checkpoint labels, so the stage names can reflect the app being scaffolded instead of generic stage numbers.
What you get
- Pre-configured Vite setup
- React template code
- ESLint configuration
- Stage-aware template selection
- Updated project
package.json
Project structure
your-project-name/
|-- index.html
|-- package.json
|-- vite.config.js
|-- eslint.config.js
|-- public/
`-- src/
|-- main.jsx
|-- App.jsx
|-- App.css
|-- index.css
`-- components/ (varies by template)Troubleshooting
Command not found
If react-vtu-cli is not recognized after a global install, make sure your npm global bin directory is on PATH.
Templates not found
Run the CLI from the directory where you want the new project to be created.
Port already in use
If the Vite dev server picks a busy port, start it with:
npm run dev -- --port 3000Next steps
After scaffolding:
cdinto the project.- Run
npm install. - Start the dev server with
npm run dev. - Build with
npm run build.
License
ISC
