This template includes the following packages:
這模板整合了以下套件
- React 18 - The library for web and native user interfaces
- TypeScript - TypeScript extends JavaScript by adding types.
- TailwindCSS - Rapidly build modern websites without ever leaving your HTML.
- ESLint - Find and fix problems in your JavaScript code
- Stylelint - A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.
請先安裝好 Node.js 環境
This Demo project is running on Node.js (16.13.1) while testing.
- Clone this repository to your local machine
- Start your development :)
$ git clone https://github.com/andy922200/vite-react-typescript-tailwindcss.git
1. Enter the project folder
> Open a new terminal window and enter the folder
$ cd <project folder>
2. Install packages via yarn
$ yarn install
3. Compiles for development
$ yarn dev // port:3000
4. Check the coding style automatically ( tsx )
$ yarn lint
5. Check the css coding style
$ yarn lint-css
6. Locally preview production build
yarn preview