@teacss/bun 1.0.0 → 1.1.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/LICENSE.third-party.md +5538 -0
- package/README.md +29 -3
- package/package.json +3 -8
package/README.md
CHANGED
|
@@ -34,8 +34,34 @@ import "virtual:teacss.css";
|
|
|
34
34
|
|
|
35
35
|
With `outdir` set, the Standard preset's fonts are written to `teacss-fonts/` beside the CSS. `watch(options, onBuild)` reruns `Bun.build` when a project file changes.
|
|
36
36
|
|
|
37
|
+
## Options
|
|
38
|
+
|
|
39
|
+
Every integration takes these options. Configuration still comes from the CSS
|
|
40
|
+
entry; the options locate the project, shape the output and carry what CSS
|
|
41
|
+
cannot express.
|
|
42
|
+
|
|
43
|
+
| Option | Type | Default | Effect |
|
|
44
|
+
| --- | --- | --- | --- |
|
|
45
|
+
| `root` | `string` | The host's project root: Vite's `root`, Rsbuild's root path, `Bun.build`'s `root`, otherwise the working directory; for PostCSS, the directory of the processed file | Where entry discovery starts |
|
|
46
|
+
| `entry` | `string` | Discovery; for PostCSS, the processed file | The CSS entry path |
|
|
47
|
+
| `minify` | `boolean` | Rsbuild: on in production when Rsbuild does not minify CSS itself. Vite, Astro, Bun and PostCSS: off | The engine minifies the generated CSS; a Vite or Astro build still applies `build.cssMinify` |
|
|
48
|
+
| `unmatched` | `"warn" \| "error" \| "off"` | `"warn"` | Unmatched-token diagnostics; `"error"` throws only when `envMode` is `"build"`, so it fails a build and only warns on the Vite and Astro dev servers and under `rsbuild dev`. `@teacss/postcss` and `@teacss/bun` default to `"build"` and throw inside a dev server too |
|
|
49
|
+
| `envMode` | `"dev" \| "build"` | `"dev"` on the Vite and Astro dev servers and under `rsbuild dev`, otherwise `"build"` | Whether `unmatched: "error"` throws (only in `"build"`) |
|
|
50
|
+
| `presetOptions` | `{ standard?, icons? }` | None | Preset settings CSS cannot express, such as `preflight`, `modeSelectors`, `containers` and icon collections |
|
|
51
|
+
| `outputToCssLayers` | `boolean \| { allLayers?, cssLayerName? }` | `false` | Writes native CSS layers |
|
|
52
|
+
| `shortcutsLayer` | `string` | `"shortcuts"` | The layer of shortcuts that name none |
|
|
53
|
+
| `inline` | object | None | Static configuration the entry has no directive for; see below |
|
|
54
|
+
|
|
55
|
+
`inline` takes `blocklist` (tokens never generated), `layers` (layer name to
|
|
56
|
+
order number, merged over the defaults) and
|
|
57
|
+
`content.inline` (code strings, or `{ code, id }`, scanned as extra modules).
|
|
58
|
+
Its `shortcuts`, `safelist`, `content.filesystem` and `theme` apply only when
|
|
59
|
+
the entry does not set the same thing: `@shortcut`, `@safelist` and `@source`
|
|
60
|
+
replace them when present, and with an entry its `@custom` replaces `theme`
|
|
61
|
+
entirely. Any other key in `inline` fails the load with `E_INVALID_ARGUMENT`,
|
|
62
|
+
and the message names the key.
|
|
63
|
+
|
|
37
64
|
## Documentation
|
|
38
65
|
|
|
39
|
-
- [
|
|
40
|
-
- [The
|
|
41
|
-
- [The TeaCSS skill](https://github.com/teacss/teacss-rs/blob/master/skills/teacss/SKILL.md) for syntax, presets and tooling
|
|
66
|
+
- [Installation](https://css.teakit.org/?path=/story/concepts--installation): install an integration, write the CSS entry and connect the build
|
|
67
|
+
- [The TeaCSS catalogue](https://css.teakit.org): the class syntax, the presets and every utility
|
package/package.json
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teacss/bun",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Bun.build plugin for TeaCSS: virtual:teacss.css and the entry's @teacss become the CSS the Rust engine generates",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/teacss/teacss-rs.git",
|
|
10
|
-
"directory": "packages/bun"
|
|
11
|
-
},
|
|
12
|
-
"homepage": "https://github.com/teacss/teacss-rs/tree/master/packages/bun#readme",
|
|
7
|
+
"homepage": "https://css.teakit.org",
|
|
13
8
|
"main": "./dist/index.js",
|
|
14
9
|
"types": "./dist/index.d.ts",
|
|
15
10
|
"exports": {
|
|
@@ -31,7 +26,7 @@
|
|
|
31
26
|
"node": ">=26"
|
|
32
27
|
},
|
|
33
28
|
"dependencies": {
|
|
34
|
-
"@teacss/engine": "1.
|
|
29
|
+
"@teacss/engine": "1.1.0"
|
|
35
30
|
},
|
|
36
31
|
"devDependencies": {
|
|
37
32
|
"@types/bun": "1.4.5",
|