@homepages/template-cli 0.1.0 → 0.1.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/CHANGELOG.md +69 -0
- package/dist/package.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# @homepages/template-cli
|
|
2
|
+
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 10f53a7: `template-kit dev`'s canvas hover/select ring no longer overflows the page's
|
|
8
|
+
x-axis when hovering a full-bleed section (e.g. a hero or header flush with
|
|
9
|
+
both page edges). The ring's geometry inflated the target's bounding rect by
|
|
10
|
+
a fixed offset on every side with no bound, so a rect already touching the
|
|
11
|
+
document edge pushed the ring 2px past it, growing the iframe's horizontal
|
|
12
|
+
scroll extent. The ring box is now clamped to `[0, containerWidth]`.
|
|
13
|
+
- f3f6d70: `template-kit check` no longer fails on a tsconfig `paths` alias (e.g.
|
|
14
|
+
`"@/platform/*": ["../platform/*"]`) or on a section whose contract files
|
|
15
|
+
share a module large enough for esbuild to code-split. Previously the
|
|
16
|
+
loader's css-stub plugin decided "external vs. bundle" from the specifier's
|
|
17
|
+
own text, so a `paths`-resolved alias got re-emitted as a literal bare
|
|
18
|
+
import Node couldn't resolve; separately, the loader's build applied
|
|
19
|
+
`publicPath` to code-split `chunk-*.js` cross-imports the same way it does
|
|
20
|
+
to real asset files, producing an import path Node couldn't resolve either.
|
|
21
|
+
Both are now decided from the actual resolved file, and `publicPath` is no
|
|
22
|
+
longer set on the loader's build.
|
|
23
|
+
- 1c2c2db: `template-kit dev`'s preview server no longer 500s on `/runtime/base.css`.
|
|
24
|
+
The route resolved the file at a path the build never emits to
|
|
25
|
+
(`dist/css/base.css`; the build copies it flat to `dist/base.css`), so every
|
|
26
|
+
section rendered unstyled — Tailwind-derived colors and layout were silently
|
|
27
|
+
missing everywhere, only arbitrary-value element geometry survived. The route
|
|
28
|
+
now resolves the stylesheet through `@homepages/template-kit`'s own
|
|
29
|
+
`./base.css` export, so the kit's internal layout is no longer something this
|
|
30
|
+
package can guess wrong about.
|
|
31
|
+
- 989d23e: `template-kit dev` gains an optional `--diagnostics-cmd` flag: point it at any
|
|
32
|
+
command that prints `{"violations": [...]}` JSON for a `--template`/`--section`
|
|
33
|
+
pair, and the standalone section preview
|
|
34
|
+
(`/sections/<template>/<section>/<fixture>`) shows a dismissible banner when it
|
|
35
|
+
reports violations. Unset by default — no behavior change for a workspace that
|
|
36
|
+
doesn't configure it.
|
|
37
|
+
- e1d5792: `template-kit dev`'s preview server now compiles a template's theme-color
|
|
38
|
+
Tailwind utilities (`bg-primary`, `text-ink`, `bg-background`, etc.) instead
|
|
39
|
+
of silently dropping them. `assembleTemplateCss` used to concatenate the
|
|
40
|
+
compiled theme (`compileThemeToCss`, the `@theme inline` alias layer plus
|
|
41
|
+
its `:root` custom props) onto Tailwind's CLI output _after_ the CLI had
|
|
42
|
+
already run, so the theme's color tokens were never part of the build graph
|
|
43
|
+
Tailwind scanned — `@theme` outside that graph is inert, and silently so, so
|
|
44
|
+
any utility built on a template color never got generated. No error, no
|
|
45
|
+
warning: every section rendered with correct layout but default
|
|
46
|
+
black-on-white text and backgrounds. The theme partial is now written to the
|
|
47
|
+
dev cache and `@import`ed into the Tailwind entry ahead of the section
|
|
48
|
+
`@source` scans, mirroring how the registry's own publish pipeline
|
|
49
|
+
(`ci/build-css.ts`) has always assembled it. `fontFaces` is still prepended
|
|
50
|
+
to the final bundle separately, since a nested `@import url(...)` doesn't
|
|
51
|
+
hoist out of an imported partial.
|
|
52
|
+
- 2e36277: Escape `>` and `&` as well as `<` in the dev server's island map, matching the escaping used by published pages.
|
|
53
|
+
- ff1d6de: `template-kit dev`'s canvas mirror now shows the Islands inspector panel for a
|
|
54
|
+
section-level selection, not just a slot selection. A `fill-parent`/`fill-self`
|
|
55
|
+
island with no owning slot of its own only ever gets its shield dropped by a
|
|
56
|
+
section-level click, so the panel previously could show it as `shielded` but
|
|
57
|
+
never `interactive`. Existing slot-selection behavior (edit panel + Islands
|
|
58
|
+
list) is unchanged.
|
|
59
|
+
- 41d0e88: `template-kit dev` now honors a workspace's tsconfig `paths` when resolving
|
|
60
|
+
imports, the same way `check` already does via esbuild's native tsconfig
|
|
61
|
+
lookup. Previously the dev server's Vite instance had no `paths` awareness at
|
|
62
|
+
all, so a workspace mapping (e.g. `"@/lib/*": ["../lib/*"]`) that made `check`
|
|
63
|
+
pass left `dev` 500ing with `Cannot find module`. A workspace with no `paths`
|
|
64
|
+
mapping is unaffected.
|
|
65
|
+
- Updated dependencies [5030122]
|
|
66
|
+
- Updated dependencies [f868a43]
|
|
67
|
+
- Updated dependencies [b7bfc96]
|
|
68
|
+
- Updated dependencies [1c4c7dd]
|
|
69
|
+
- @homepages/template-kit@0.9.0
|
package/dist/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homepages/template-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "The template-kit CLI: check, dev (with the canvas playground), new, pack, theme, and link. Peers @homepages/template-kit.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|