An expanding CLI scaffolding tool
A CLI tool to bootstrap a new Vite project with customisable options.
You can install the package globally using npm:
npm install -g vtta
or use without installing with:
npx vtta <project-name>
To create a new Vite project, run:
vtta <project-name>
Options
-y
, --yes
: Skip prompts and use default options (TypeScript, Tailwind CSS, and React Router will be enabled).
To create a new Vite project with the default options:
vtta your-project-name -y
Or, for a customized setup:
vtta your-project-name
You will be prompted to select options for TypeScript, Tailwind CSS, and React Router.
When the ShadCN option is selected, the setup will include:
tsconfig.json
, tsconfig.app.json
and vite.config.ts
to include path aliases for ShadCN components.components.json
with ShadCN settings which you can further customise.The generated project will have the following structure:
my-vite-project/
public/
src/
components/
| ui/
| | button.tsx
pages/
utils/
| api.ts
hooks/
index.css
tailwind.config.js
package.json
If ShadCN is enabled, the src/components
folder will include ShadCN UI components.
npm run build
npm link
Contributions are welcome! Please feel free to submit a pull request or open an issue.
This project is licensed under the MIT License - see the LICENSE file for details.