1.1.7 ⢠Published 4 years ago
vr2t v1.1.7
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-namewith the title of your project ā
npx vr2t project-name- VR2T uses
yarnas default to install dependencies. - If you want to use
npminstead 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
.prettierrcto your liking. - Delete the types &/ components folder if you don't need them.