bilhej/opencode.json
Joakim Mörling 0d7e672bc3 chore: add Docker build volume and configure OpenCode
Add a named volume for backend build artifacts to prevent root-owned files
created inside the container from blocking host Gradle builds. This follows
the same pattern as the existing backend-gradle-project volume.

Configure OpenCode with LSP, formatter, auto-compaction, and file watcher
settings for improved development experience.

Changes:
- docker-compose.yml: add backend-build:/app/backend/build volume
- opencode.json: enable lsp, formatter, auto-compaction, prune, and
  file watcher with ignore patterns for node_modules, .git, dist, build
2026-05-14 12:39:34 +02:00

21 lines
437 B
JSON

{
"$schema": "https://opencode.ai/config.json",
"instructions": ["CODING_GUIDELINES.md", "REQUIREMENTS.md"],
"lsp": true,
"formatter": true,
"permission": {
"edit": "ask",
"bash": "ask"
},
"tools": {
"websearch": true,
"codesearch": true
},
"compaction": {
"auto": true,
"prune": true
},
"watcher": {
"ignore": ["node_modules/**", ".git/**", "dist/**", "build/**", "**/target/**"]
}
}