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: src/AGENTS.md
+18-8Lines changed: 18 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,14 +42,24 @@ This file provides guidance to Claude Code (claude.ai/code) and also Gemini CLI
42
42
-`cd packages/[package] && pnpm build` - Build and compile a specific package
43
43
- For packages/next and packages/static, run `cd packages/[package] && pnpm build-dev`
44
44
-`cd packages/[package] && pnpm test` - Run tests for a specific package
45
-
- To typecheck the frontend, it is best to run `cd packages/static && pnpm build` - this implicitly compiles the frontend and reports TypeScript errors
46
45
-**IMPORTANT**: When modifying packages like `util` that other packages depend on, you must run `pnpm build` in the modified package before typechecking dependent packages
47
46
48
47
### Development
49
48
50
49
-**IMPORTANT**: Always run `prettier -w [filename]` immediately after editing any .ts, .tsx, .md, or .json file to ensure consistent styling
51
-
- After TypeScript or `*.tsx` changes, run `pnpm build` in the relevant package directory
52
-
- When editing the frontend, run `pnpm build-dev` in `packages/static` (this implicitly builds the frontend)
50
+
51
+
#### When Working on Frontend Code
52
+
53
+
After making changes to files in `packages/frontend`:
54
+
55
+
1.**Typecheck**: Run `cd packages/frontend && pnpm tsc --noEmit` to check for TypeScript errors
56
+
2.**Build**: Run `cd packages/static && pnpm build-dev` to compile the frontend for testing
57
+
58
+
**DO NOT** run `pnpm build` in `packages/frontend` - it won't work as expected for frontend development.
59
+
60
+
#### When Working on Other Packages
61
+
62
+
- After TypeScript changes, run `pnpm build` in the relevant package directory
53
63
54
64
## Architecture Overview
55
65
@@ -155,11 +165,11 @@ CoCalc is organized as a monorepo with key packages:
155
165
156
166
### Development Workflow
157
167
158
-
1.Changes to TypeScript require compilation (`pnpm build` in relevant package)
159
-
2.Database must be running before starting hub
160
-
3.Hub coordinates all services and should be restarted after changes
161
-
4.Use `pnpm clean && pnpm build-dev` when switching branches or after major changes
162
-
5.**IMPORTANT**: After any frontend code changes, run `pnpm build-dev`in the `packages/static` directory to compile the frontend
168
+
1.**Frontend changes**: After editing `packages/frontend`, typecheck with `cd packages/frontend && pnpm tsc --noEmit`, then build with `cd packages/static && pnpm build-dev`
169
+
2.**Other package changes**: After TypeScript changes, run `pnpm build` in the relevant package directory
170
+
3.Database must be running before starting hub
171
+
4.Hub coordinates all services and should be restarted after changes
172
+
5.Use `pnpm clean && pnpm build-dev`when switching branches or after major changes
0 commit comments