Skip to content
Source
Sign inSign up
TanStack/cli
Open History to see the last commit

README.md

20 lines1.2 KB

1# Create TanStack App - User Interface
2​
3This is an odd package because it's both a library that runs a web server, as well as a React SPA app that builds using Vite.
4​
5## Script Commands
6​
7| Command | Description |
8| -------------------- | ---------------------------------------------- |
9| `pnpm build` | Builds **both** the library and the React app |
10| `pnpm build:ui` | Builds the React app only |
11| `pnpm build:lib` | Builds just the `lib` directory |
12| `pnpm dev:ui` | Uses Vite to run the React app in dev mode |
13| `pnpm dev` | Builds the `lib` directory in watch mode |
14| `pnpm test` | Runs the tests |
15| `pnpm test:watch` | Runs the tests in watch mode |
16| `pnpm test:coverage` | Runs the tests and generates a coverage report |
17​
18## Dev vs Prod Mode
19​
20The only difference between dev and prod mode (outside of the usual minification and tree-shaking that goes into prod builds) is that in development mode the `src/lib/api.ts` uses a base URL of `http://localhost:8080` to point at the CLI running in API mode.