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: .github/copilot-instructions.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ wled00/ # Main firmware source (C++)
85
85
│ ├── settings*.htm # Settings pages
86
86
│ └── *.js/*.css # Frontend resources
87
87
├── *.cpp/*.h # Firmware source files
88
-
└── html_*.h # Generated embedded web files (DO NOT EDIT)
88
+
└── html_*.h # Auto-generated embedded web files (DO NOT EDIT, DO NOT COMMIT)
89
89
tools/ # Build tools (Node.js)
90
90
├── cdata.js # Web UI build script
91
91
└── cdata-test.js # Test suite
@@ -101,7 +101,7 @@ package.json # Node.js dependencies and scripts
101
101
-`wled00/wled.h` - Main firmware configuration
102
102
-`platformio.ini` - Hardware build targets and settings
103
103
104
-
### Development Workflow
104
+
### Development Workflow (applies to agent mode only)
105
105
1.**For web UI changes**:
106
106
- Edit files in `wled00/data/`
107
107
- Run `npm run build` to regenerate headers
@@ -148,10 +148,13 @@ package.json # Node.js dependencies and scripts
148
148
149
149
## Important Notes
150
150
151
-
-**DO NOT edit `wled00/html_*.h` files** - they are auto-generated
152
-
-**Always commit both source files AND generated html_*.h files**
153
-
-**Web UI must be built before firmware compilation**
151
+
-**Always commit source files**
152
+
-**Web UI re-built is part of the platformio firmware compilation**
153
+
-**do not commit generated html_*.h files**
154
+
-**DO NOT edit `wled00/html_*.h` files** - they are auto-generated. If needed, modify Web UI files in `wled00/data/`.
154
155
-**Test web interface manually after any web UI changes**
156
+
- When reviewing a PR: the PR author does not need to update/commit generated html_*.h files - these files will be auto-generated when building the firmware binary.
157
+
- If updating Web UI files in `wled00/data/`, make use of common functions availeable in `wled00/data/common.js` where possible.
155
158
-**Use VS Code with PlatformIO extension for best development experience**
156
159
-**Hardware builds require appropriate ESP32/ESP8266 development board**
0 commit comments