You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Development server (ALWAYS use for testing UI changes):**
44
-
```bash
45
-
bun run dev # Start dev server with hot reload (http://localhost:3000)
46
100
```
47
-
**IMPORTANT:** Use `bun run dev` at CCS root level for always up-to-date code. Do NOT use `ccs config` during development as it uses the globally installed (outdated) version.
48
-
49
-
## UI Quality Gates (React Dashboard)
50
-
51
-
**The ui/ directory has IDENTICAL quality gates to the main project.**
52
-
53
-
**Package Manager: bun** (same as root)
54
-
```bash
55
-
cd ui
56
-
bun install # Install dependencies
57
-
bun run build # TypeScript + Vite build
58
-
bun run validate # Full validation: typecheck + lint:fix + format:check
101
+
src/ → TypeScript source (main project)
102
+
dist/ → Compiled JavaScript (npm package)
103
+
lib/ → Native shell scripts (bash, PowerShell)
104
+
ui/src/ → React components, hooks, pages
105
+
ui/src/components/ui/ → shadcn/ui components
106
+
dist/ui/ → Built UI bundle (served by Express)
59
107
```
60
108
61
-
**Fix issues before committing:**
109
+
### Development Server
110
+
62
111
```bash
63
-
cd ui
64
-
bun run typecheck # Type check only
65
-
bun run lint:fix # Auto-fix lint issues
66
-
bun run format # Auto-fix formatting
67
-
bun run format:check # Verify formatting (no changes)
112
+
bun run dev # Build + start config server (http://localhost:3000)
68
113
```
69
-
70
-
**Linting rules (ui/eslint.config.js) - ALL errors:**
- Avoid `any` types - use proper typing or `unknown`
101
-
- Avoid `@ts-ignore` - fix the type error properly
114
+
**IMPORTANT:** Use `bun run dev` at CCS root for always up-to-date code. Do NOT use `ccs config` during development as it uses the globally installed version.
0 commit comments