Skip to content

Commit 3d159cb

Browse files
committed
release: 1.12.1
1 parent dd33a8a commit 3d159cb

File tree

5 files changed

+35
-4
lines changed

5 files changed

+35
-4
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.12.1] - 2025-12-04
11+
12+
### Changed
13+
14+
- **Configuration Display in Generated Headers**: Renamed `//cmdline:` to `//config:` in all generated header files
15+
- Now displays effective configuration values regardless of source (RC file, CLI arguments, or both)
16+
- Shows all active configuration parameters: `engine`, `sourcepath`, `outputfile`, `etag`, `gzip`, `cachetime`, `espmethod`, `define`, and `exclude` patterns
17+
- Provides complete traceability of configuration used for code generation
18+
- Format: `//config: engine=psychic sourcepath=./dist outputfile=./output.h etag=true gzip=true ...`
19+
20+
### Fixed
21+
22+
- Configuration comment in generated headers now displays values when using RC file (previously showed empty when using RC file without CLI arguments)
23+
1024
## [1.12.0] - 2025-12-04
1125

1226
### Added
@@ -306,6 +320,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
306320
- CLI interface with `-s`, `-e`, `-o` options
307321
- `index.html` automatic default route handling
308322

323+
[1.12.1]: https://github.com/BCsabaEngine/svelteesp32/compare/v1.12.0...v1.12.1
309324
[1.12.0]: https://github.com/BCsabaEngine/svelteesp32/compare/v1.11.0...v1.12.0
310325
[1.11.0]: https://github.com/BCsabaEngine/svelteesp32/compare/v1.10.0...v1.11.0
311326
[1.10.0]: https://github.com/BCsabaEngine/svelteesp32/compare/v1.9.4...v1.10.0

CLAUDE.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,3 +294,19 @@ The generated header file includes C++ defines for build-time validation:
294294
- `{PREFIX}_{EXT}_FILES`: Count of files by extension (e.g., `SVELTEESP32_CSS_FILES`)
295295

296296
These allow C++ code to verify expected files are present using `#ifndef` and `#error` directives.
297+
298+
## Generated Header Configuration Comment
299+
300+
The generated header file includes a `//config:` comment at the top that displays the effective configuration used during code generation:
301+
302+
```cpp
303+
//engine: PsychicHttpServer
304+
//config: engine=psychic sourcepath=./dist outputfile=./output.h etag=true gzip=true cachetime=0 espmethod=initSvelteStaticFiles define=SVELTEESP32 exclude=[*.map, *.md]
305+
```
306+
307+
**Implementation** (`src/commandLine.ts`, `src/cppCode.ts`):
308+
309+
- `formatConfiguration()` function creates a formatted string from the `ICopyFilesArguments` object
310+
- Shows all configuration parameters: `engine`, `sourcepath`, `outputfile`, `etag`, `gzip`, `cachetime`, `espmethod`, `define`, and `exclude` patterns
311+
- Works consistently whether configuration comes from RC file, CLI arguments, or both
312+
- Provides complete traceability of the configuration used for code generation

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ The content of **generated file** (do not edit, just use):
202202

203203
```c
204204
//engine: PsychicHttpServer
205-
//cmdline: -e psychic -s ./dist -o ./output.h --etag=true --gzip=true
205+
//config: engine=psychic sourcepath=./dist outputfile=./output.h etag=true gzip=true cachetime=0 espmethod=initSvelteStaticFiles define=SVELTEESP32
206206
//
207207
#define SVELTEESP32_COUNT 5
208208
#define SVELTEESP32_SIZE 468822

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "svelteesp32",
3-
"version": "1.12.0",
3+
"version": "1.12.1",
44
"description": "Convert Svelte (or any frontend) JS application to serve it from ESP32 webserver (PsychicHttp)",
55
"author": "BCsabaEngine",
66
"license": "ISC",

0 commit comments

Comments
 (0)