This repo will be my template when ever I want to do something with ReactJS.
This template has:
- Yarn 3+
- Vite
- React
- TailwindCSS
- Prettier
To get started, future me, please follow these steps. Trust me, it's not that hard.
- Clone this repo. Because this repo will contain
.yarn/cache/, this will make cloning slow.- With cached files:
git clone --depth 1 https://github.com/Kunniii/react-template <YOUR_PROJECT_NAME> - If you don't want to clone the cached files:
git clone --depth 1 -b no-cache https://github.com/Kunniii/react-template <YOUR_PROJECT_NAME>
- With cached files:
- Update your project name in
package.json. - Remove folder
.git/ - Run
git init - Make sure that you have an existing repo on your GitHub. Two ways to get this done:
- Go to GitHub website and create one.
- Or use
ghCLI with commandgh repo createand follow the steps. DO NOT CLONE THE REPO!!
- Run
git remote add origin git@github.com:<YOUR_NAME>/<YOUR_REPO_NAME>.gitif you have ssh configured. You should have one if haven't! - Run
yarnoryarn installto install the dependencies. - Add files, commit and push to that repo
git push -u origin main or master i don't know LOL
I cannot commit, help me Oh, yes, because this repo use Husky for linting by using Prettier before commit, you will need to install the dependencies.
Prettier is not working
Make sure that you installed the dependecies. If you use npm, just give up, take a nap, then, come back and run yarn or yarn install.
In that case, let's just create an issue.