- Install dependencies with
bun install
- Copy
.env.example
to.env
and update any values - Start the development server with
bun vite
.
bun build
- Build the application for productionbun lint
- Run ESLintbun format
- Run Prettierbun test
- Run Jest tests
To view dependencies in the editor install the ZipFS extension
You can setup VS Code to use Prettier for formatting by installing the Prettier extension
- Install the Prettier-Standard plugin: <cmd/ctrl + p>
ext install prettier-standard-vscode
- Right click in any typescript file and select
Format Document With...
- Select
Configure Default Formatter...
- Select
prettier-standard-vscode
The github actions can be ran locally using Act
The following command will run the github action locally, which is useful for debugging or testing new configuration: act -P ubuntu-22.04=cypress/included:12.17.3
The following will update all installed components to the latest version
for file in src/components/ui/*.tsx; do bunx shadcn-ui@latest add -y -o $(basename "$file" .tsx); done
- React Router
- React Query
- React Hook Form
- React Hot Toast
- React Spinners
- React Use
- React Select
- Zustand
- Zod
- Tailwind CSS
- Heroicons
- React Icons
- Vitest
- React Testing Library
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
- Configure the top-level
parserOptions
property like this:
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
- Replace
plugin:@typescript-eslint/recommended
toplugin:@typescript-eslint/recommended-type-checked
orplugin:@typescript-eslint/strict-type-checked
- Optionally add
plugin:@typescript-eslint/stylistic-type-checked
- Install eslint-plugin-react and add
plugin:react/recommended
&plugin:react/jsx-runtime
to theextends
list