huynhducduy / ready2react

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ready2React

Setup

pnpm install

Development

Create a .env.development(.local?) based on .env.example

pnpm dev

Devtools

Come with react-dev-inspector

To open, use keyboard shortcuts:

  • On macOS: Ctrl + Shift + Command + C
  • On Windows / Linux: Ctrl + Shift + Alt + C

Staging (Test)

Create a .env.staging(.local?) based on .env.example

pnpm build --mode staging

Production

Create a .env.production(.local?) based on .env.example

pnpm build

Notes

About SWC config: SWC (@swc/core) must share the same version accross the app. Package that use SWC:

@swc-jotai/debug-label
@swc-jotai/react-refresh
@swc/plugin-react-remove-properties
@vitejs/plugin-react-swc

@swc/core is currently pinned to 1.6.13 in package.json

About


Languages

Language:TypeScript 69.0%Language:JavaScript 19.3%Language:SCSS 10.5%Language:HTML 1.2%