fontmin-rs 1.0.0 → 1.0.1
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 +16 -0
- package/configuration_schema.json +724 -0
- package/dist/cli.mjs +23 -95
- package/dist/compat.d.mts +1 -1
- package/dist/compat.mjs +2 -2
- package/dist/index.d.mts +6 -2
- package/dist/index.mjs +2 -2
- package/dist/{optimize-pipeline-DYuWMBeb.mjs → optimize-pipeline-Dcw66XRX.mjs} +376 -297
- package/dist/plugins-BYiw1qlh.mjs +125 -0
- package/dist/{plugins-CKuT_b0n.d.mts → plugins-BZfnjfJQ.d.mts} +1 -0
- package/dist/plugins.d.mts +1 -1
- package/dist/plugins.mjs +1 -149
- package/dist/presets.d.mts +1 -1
- package/dist/presets.mjs +1 -1
- package/package.json +6 -4
package/README.md
CHANGED
|
@@ -22,6 +22,22 @@ fontmin-rs build fonts/roboto.ttf \
|
|
|
22
22
|
See the [documentation](https://fontmin-rs.ntnyq.dev/) for the Node.js API,
|
|
23
23
|
CLI configuration, browser WASM runtime, and migration guides.
|
|
24
24
|
|
|
25
|
+
## JSON Schema
|
|
26
|
+
|
|
27
|
+
The package includes a JSON Schema for `fontmin.config.json` and
|
|
28
|
+
`fontmin.config.jsonc`:
|
|
29
|
+
|
|
30
|
+
```jsonc
|
|
31
|
+
{
|
|
32
|
+
"$schema": "./node_modules/fontmin-rs/configuration_schema.json",
|
|
33
|
+
"input": ["fonts/*.ttf"],
|
|
34
|
+
"outDir": "build",
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Use `defineConfig()` for type checking and completion in executable TypeScript
|
|
39
|
+
or JavaScript configuration files.
|
|
40
|
+
|
|
25
41
|
## License
|
|
26
42
|
|
|
27
43
|
[MIT](https://github.com/fontmin-rs/fontmin-rs/blob/main/LICENSE)
|