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
Copy file name to clipboardExpand all lines: AGENTS.md
+15-13Lines changed: 15 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,8 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
10
10
11
11
### Build and Production
12
12
13
-
-`pnpm run build` - Full production build (cleans `build/web/`, copies resources, builds React via Craco with Workbox service worker generation, builds workspace packages)
14
-
-`pnpm run build:react-only` - Build only React app via Craco
13
+
-`pnpm run build` - Full production build (cleans `build/web/`, copies resources, builds React via Vite with `vite-plugin-pwa` service worker generation, builds workspace packages)
14
+
-`pnpm run build:react-only` - Build only React app via Vite
15
15
-`pnpm run relay` - Compile GraphQL queries with Relay compiler
16
16
17
17
### Quality Control
@@ -23,8 +23,8 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
23
23
24
24
### Testing
25
25
26
-
-`pnpm run test` - Run Jest tests (root: `scripts/`, `src/`)
27
-
-`pnpm run test` (in `/react` directory) - Run React-specific Jest tests
26
+
-`pnpm run test` - Run Vitest tests (root: `scripts/`, `src/`)
27
+
-`pnpm run test` (in `/react` directory) - Run React-specific Vitest tests (`pnpm run vitest:watch` for watch mode)
28
28
- E2E tests (`/e2e/`) use Playwright; require full Backend.AI cluster running first
29
29
30
30
### Electron App
@@ -41,30 +41,31 @@ This is a **React web application** using React 19 + Ant Design 6 + Relay 20 (Gr
41
41
42
42
### Key Technologies
43
43
44
-
-**React Build**: Webpack via @craco/craco (Create React App with customizations)
44
+
-**React Build**: Vite 6 (`@vitejs/plugin-react`) with `vite-plugin-pwa`, `vite-plugin-svgr`, `vite-plugin-node-polyfills`
45
45
-**Component Library Build**: Vite (`packages/backend.ai-ui/`)
46
-
-**Service Worker**: workbox-webpack-plugin (GenerateSW, integrated into Craco/Webpack build)
46
+
-**Service Worker**: `vite-plugin-pwa` (Workbox under the hood), integrated into the Vite build
47
47
-**Package Manager**: pnpm with workspace monorepo
1.**Dev Server**: Run `pnpm run dev` (TypeScript watch + Relay watch + React dev server under [Portless](https://github.com/vercel-labs/portless)). Portless is a `devDependency`, no global install needed; `dev.mjs` auto-starts the daemon on port 1355 (HTTPS by default).
97
98
2.**URL**: For branches matching `FR-XXXX` the dev URL is `https://fr-XXXX.localhost:1355`; otherwise Portless derives a branch-based subdomain (printed on startup). See `DEV_ENVIRONMENT.md` for theme color and troubleshooting.
98
-
3.**Testing**: Jest unit tests + Playwright E2E tests
99
+
3.**Testing**: Vitest unit tests + Playwright E2E tests
99
100
4.**Linting**: ESLint 9 (flat config) + Prettier with pre-commit hooks via Husky
100
101
101
102
# Additional Workflow Description
@@ -134,7 +135,8 @@ Production build (`pnpm run build`) runs these steps sequentially:
0 commit comments