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: memory-bank/.clinerules
+36-3Lines changed: 36 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -26,19 +26,35 @@ This file captures important patterns, preferences, and project intelligence tha
26
26
27
27
## Development Workflow
28
28
29
-
- **Build System**: Use Leeway for building components
30
-
- `leeway build` to build specific components
31
-
- `leeway exec` to run commands across components
29
+
- **Build Approaches**:
30
+
- **In-tree builds** (primary for local development):
31
+
- TypeScript components: Use `yarn` commands defined in package.json
32
+
- `yarn build`: Compile the component
33
+
- `yarn test`: Run tests
34
+
- `yarn lint`: Check code style
35
+
- `yarn watch`: Watch for changes and rebuild
36
+
- Go components: Use standard Go tools
37
+
- `go build ./...`: Build all packages
38
+
- `go test ./...`: Test all packages
39
+
- `go run main.go`: Build and run
40
+
41
+
- **Out-of-tree builds** (Leeway, primary for CI):
42
+
- `leeway build components/component-name:app`: Build a specific component
43
+
- `leeway build -D components/component-name:app`: Build with dependencies
44
+
- `leeway exec --package components/component-name:app -- command`: Run a command for a package
32
45
33
46
- **Testing**:
34
47
- Unit tests alongside code
35
48
- Integration tests in separate directories
36
49
- End-to-end tests in the `test/` directory
50
+
- Component-specific test commands in package.json (for TypeScript)
51
+
- Go tests use standard `go test` command
37
52
38
53
- **Local Development**:
39
54
- Use Gitpod workspaces for development (dogfooding)
40
55
- Components can be run individually for testing
41
56
- Preview environments for testing changes
57
+
- Use in-tree builds for rapid iteration during development
42
58
43
59
## Critical Implementation Paths
44
60
@@ -102,6 +118,23 @@ This section will be updated as I learn about how and why certain architectural
102
118
103
119
This section will be updated as I learn about specific user preferences for working with the codebase.
104
120
121
+
## Build and Test Information
122
+
123
+
When working with components, I should always document:
124
+
125
+
- **Build Commands**: Document any new or component-specific build commands I encounter
126
+
- **Test Commands**: Document how to run tests for each component
127
+
- **Dependencies**: Note any special dependencies required for building or testing
128
+
- **Common Issues**: Document common build or test issues and their solutions
129
+
- **Performance Considerations**: Note any performance considerations for builds
130
+
131
+
Whenever I encounter new build patterns or commands, I should update:
132
+
1. The relevant component documentation in `memory-bank/components/`
133
+
2. The `.clinerules` file with general patterns
134
+
3. The `techContext.md` file if it represents a significant pattern
135
+
136
+
This information is critical for effective development work, as being able to build and test components is fundamental to making changes and verifying their correctness.
137
+
105
138
---
106
139
107
140
Note: This file will be continuously updated as I work with the Gitpod codebase and discover new patterns, preferences, and insights.
0 commit comments