Skip to content
Source
Sign inSign up
TanStack/cli

packages/cta-ui

README.md

Create TanStack App - User Interface

This 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.

Script Commands

CommandDescription
pnpm buildBuilds both the library and the React app
pnpm build:uiBuilds the React app only
pnpm build:libBuilds just the lib directory
pnpm dev:uiUses Vite to run the React app in dev mode
pnpm devBuilds the lib directory in watch mode
pnpm testRuns the tests
pnpm test:watchRuns the tests in watch mode
pnpm test:coverageRuns the tests and generates a coverage report

Dev vs Prod Mode

The 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.