hsml 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -86,8 +86,35 @@ hsml compile index.hsml -o output.html
86
86
  # Compile all .hsml files in a directory
87
87
  hsml compile src/
88
88
 
89
+ # Check files for errors and warnings without compiling
90
+ hsml check src/
91
+
89
92
  # Get diagnostics as JSON (for CI integration)
90
93
  hsml compile index.hsml --report-format json
94
+ hsml check src/ --report-format json
95
+ ```
96
+
97
+ ### Ignore patterns
98
+
99
+ When compiling or checking a directory, HSML automatically skips:
100
+
101
+ - **Hidden files and directories** (e.g. `.git/`, `.cache/`)
102
+ - **Built-in ignores**: `node_modules/`, `target/`, `dist/`, `build/`, `.hg/`, `.svn/`
103
+ - **`.gitignore` patterns** (works even outside git repositories)
104
+ - **`.hsmlignore` patterns** (same format as `.gitignore`)
105
+
106
+ You can also pass ignore patterns via CLI:
107
+
108
+ ```sh
109
+ hsml compile src/ --ignore-pattern "vendor/"
110
+ hsml check src/ --ignore-pattern "tmp/" --ignore-pattern "generated/"
111
+ ```
112
+
113
+ To re-include a built-in ignored directory, add a negation to `.hsmlignore`:
114
+
115
+ ```gitignore
116
+ # .hsmlignore
117
+ !build/
91
118
  ```
92
119
 
93
120
  ### WASM / JavaScript
@@ -243,7 +270,8 @@ warning[W002]: Duplicate class 'foo'
243
270
  - [x] WASM package for npm
244
271
  - [x] Diagnostic system with errors and warnings
245
272
  - [x] JSON diagnostic output (`--report-format json`)
246
- - [ ] `hsml check` — standalone linting command
273
+ - [x] `hsml check` — standalone linting command
274
+ - [x] Ignore support (`.gitignore`, `.hsmlignore`, `--ignore-pattern`)
247
275
  - [ ] `hsml fmt` — code formatter
248
276
  - [ ] `hsml parse` — AST output as JSON
249
277
  - [ ] LSP server for editor integration
package/hsml_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "Christopher Quadflieg <chrissi92@hotmail.de>"
6
6
  ],
7
7
  "description": "A pug-inspired HTML preprocessor",
8
- "version": "0.2.0",
8
+ "version": "0.3.0",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",