π¨
VR2T Boilerplate Generator VR2T [ VR-TT ] stands for Vite - React - TypeScript - Tailwind CSS
Why Use VR2T?
- Without VR2T, setting up a project would be:
$ yarn create vite my-project --template react-ts
$ cd my-project
$ yarn install
$ yarn add tailwindcss postcss autoprefixer
$ yarn tailwindcss init -p
# adding tailwind.css...
# @tailwind base;
# @tailwind components;
# @tailwind utilities;
# turning jit mode on tailwind.config.js...
# adding paths to purge...
# import './tailwind.css'
# deleting unnecessary files...
# etc...
- With VR2T Boilerplate Generator, it's simply:
npx vr2t
# installing dependencies, setting up tailwind with jit, etc...
# all of that is already configured with VR2T!
Installation
npx vr2t
- You can also directly specify the project name.
- Replace the
project-name
with the title of your project β
npx vr2t project-name
- VR2T uses
yarn
as default to install dependencies. - If you want to use
npm
instead ofyarn
β
npx vr2t project-name --npm
π your-project
ββ π src
β ββ π components
β ββ π types
β β ββ π main.d.ts
β ββ ββ π props.d.ts
ββ π .gitignore
ββ π .prettierrc
ββ π index.html
ββ π package.json
ββ π postcss.config.js
ββ π tailwind.config.js
ββ π tsconfig.json
ββ π vite.config.json
- Customize the
.prettierrc
to your liking. - Delete the types &/ components folder if you don't need them.