@fusion.dev/helix-templates 0.4.2 → 0.4.4
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
|
@@ -8,7 +8,7 @@ npm create helix-app@latest my-app
|
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
You are unlikely to install this package yourself. It exists so that the thing
|
|
11
|
-
that would drift between those two doors
|
|
11
|
+
that would drift between those two doors, the templates, is one artifact rather
|
|
12
12
|
than two copies, and so that a template is versioned with the components it was
|
|
13
13
|
written against.
|
|
14
14
|
|
|
@@ -19,8 +19,8 @@ written against.
|
|
|
19
19
|
|
|
20
20
|
**There is no build-free HTML template**, and that is a fact about the packages
|
|
21
21
|
rather than an omission. `@fusion.dev/helix`'s published entry re-exports bare
|
|
22
|
-
specifiers
|
|
23
|
-
subpaths, `lit` and its own graph
|
|
22
|
+
specifiers (`@fusion.dev/helix-core`, ninety-odd `@fusion.dev/helix-headless/*`
|
|
23
|
+
subpaths, `lit` and its own graph) none of which a browser resolves without an
|
|
24
24
|
import map covering all of it, and an import map that large is a build artifact
|
|
25
25
|
wearing a template's clothes. The honest build-free story is a CDN that rewrites
|
|
26
26
|
the graph, which wants the packages public first.
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* written for. A template pinned to nothing is a template that stops compiling on
|
|
12
12
|
* somebody else's release.
|
|
13
13
|
*
|
|
14
|
-
* The payloads sit in `
|
|
14
|
+
* The payloads sit in `template-<id>/` and travel in the published package. This
|
|
15
15
|
* module is the register: what exists, what each one is for, and which file a
|
|
16
16
|
* consumer's project name has to be written into.
|
|
17
17
|
*/
|
|
@@ -27,7 +27,7 @@ export interface Template {
|
|
|
27
27
|
* a rename that misses a file fails a test rather than shipping.
|
|
28
28
|
*/
|
|
29
29
|
readonly named: readonly string[];
|
|
30
|
-
/**
|
|
30
|
+
/** Names the `template-<id>/` directory, and is the id a caller passes. */
|
|
31
31
|
readonly id: string;
|
|
32
32
|
/** What it is called in a chooser. */
|
|
33
33
|
readonly title: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-templates",
|
|
3
3
|
"description": "Starter templates for Helix, as data. Read by `helix new` and by `npm create helix-app`.",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.4",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"scripts": {
|
|
29
|
-
"build": "bun run register && tsc -p tsconfig.json && tsc -p tsconfig.types.json",
|
|
29
|
+
"build": "bun run register && tsc -p tsconfig.build.json && tsc -p tsconfig.types.json",
|
|
30
30
|
"register": "bun scripts/build-register.mjs",
|
|
31
31
|
"typecheck": "bun run register && tsc -p tsconfig.json --noEmit"
|
|
32
32
|
},
|
|
@@ -3,7 +3,7 @@ import type { ReactNode } from 'react'
|
|
|
3
3
|
|
|
4
4
|
/* Every layer in one import: the tokens, the reset, the utility layer, and the
|
|
5
5
|
`:not(:defined)` rules that keep a tag from arriving unstyled. */
|
|
6
|
-
import '@fusion.dev/helix/helix.css'
|
|
6
|
+
import '@fusion.dev/helix-styles/helix.css'
|
|
7
7
|
|
|
8
8
|
import { HelixElements } from './helix-elements.js'
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ import { createRoot } from 'react-dom/client'
|
|
|
4
4
|
/* Every layer in one import: the tokens, the reset, the utility layer, and the
|
|
5
5
|
`:not(:defined)` rules that keep a tag from arriving unstyled. It reaches its
|
|
6
6
|
pieces by bare specifier, so a bundler resolves it and a `<link>` cannot. */
|
|
7
|
-
import '@fusion.dev/helix/helix.css'
|
|
7
|
+
import '@fusion.dev/helix-styles/helix.css'
|
|
8
8
|
/* A custom element registers as a side effect of being imported, so this line is
|
|
9
9
|
what makes every Helix tag in the app real. Import the whole library while you
|
|
10
10
|
are finding your feet; `@fusion.dev/helix/button` and its siblings are subpath
|