@fusion.dev/helix-templates 0.26.0 → 0.30.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/dist/index.d.ts +2 -2
- package/package.json +6 -3
- package/templates/react-nextjs/app/layout.tsx +5 -1
- package/templates/react-nextjs/app/page.tsx +1 -1
- package/templates/react-nextjs/package.json +5 -2
- package/templates/react-vite/package.json +5 -3
- package/templates/react-vite/tsconfig.json +5 -2
package/dist/index.d.ts
CHANGED
|
@@ -40,8 +40,8 @@ export interface Template {
|
|
|
40
40
|
*
|
|
41
41
|
* **There is no build-free HTML template, and that is a fact about the packages
|
|
42
42
|
* rather than an omission.** `@fusion.dev/helix`'s published entry re-exports
|
|
43
|
-
* bare specifiers
|
|
44
|
-
* `@fusion.dev/helix-headless/*` subpaths, `lit` and its own graph
|
|
43
|
+
* bare specifiers (`@fusion.dev/helix-core`, ninety-odd
|
|
44
|
+
* `@fusion.dev/helix-headless/*` subpaths, `lit` and its own graph), which a
|
|
45
45
|
* browser cannot resolve without an import map covering all of it. An import map
|
|
46
46
|
* that large is a build artifact wearing a template's clothes. The honest
|
|
47
47
|
* build-free story is a CDN that rewrites the graph, which wants the packages
|
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 @fusion.dev/helix-app`.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.30.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -26,13 +26,16 @@
|
|
|
26
26
|
],
|
|
27
27
|
"sideEffects": false,
|
|
28
28
|
"scripts": {
|
|
29
|
-
"build": "
|
|
29
|
+
"build": "tsc -p tsconfig.build.json && tsc -p tsconfig.types.json",
|
|
30
30
|
"register": "bun scripts/build-register.mjs",
|
|
31
31
|
"test": "bun run test:pure",
|
|
32
32
|
"test:pure": "bun test pure.spec",
|
|
33
|
-
"typecheck": "
|
|
33
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
34
34
|
},
|
|
35
35
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@fusion.dev/scripts": "0.0.0-dev"
|
|
38
|
+
},
|
|
36
39
|
"homepage": "https://fusion.dev",
|
|
37
40
|
"keywords": [
|
|
38
41
|
"helix",
|
|
@@ -5,7 +5,11 @@ import type { ReactNode } from 'react'
|
|
|
5
5
|
`:not(:defined)` rules that keep a tag from arriving unstyled. */
|
|
6
6
|
import '@fusion.dev/helix-styles/helix.css'
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
/* Extensionless, unlike the libraries this imports. Turbopack does not map a
|
|
9
|
+
`.js` specifier back to the `.tsx` beside it, which is webpack's
|
|
10
|
+
`extensionAlias` and has no equivalent there, so `./helix-elements.js` fails
|
|
11
|
+
the first `next build` with "Module not found". */
|
|
12
|
+
import { HelixElements } from './helix-elements'
|
|
9
13
|
|
|
10
14
|
export const metadata: Metadata = { title: '__PROJECT_NAME__' }
|
|
11
15
|
export const viewport: Viewport = { initialScale: 1, width: 'device-width' }
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Helix events are props: `onhelix-before-change` reaches `helix-before-change`.
|
|
5
5
|
* Anything needing a handler is a client component, the same as any other React
|
|
6
|
-
* app
|
|
6
|
+
* app: this page needs none.
|
|
7
7
|
*/
|
|
8
8
|
export default function Page() {
|
|
9
9
|
return (
|
|
@@ -11,11 +11,14 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@fusion.dev/helix": "^__HELIX_VERSION__",
|
|
13
13
|
"@fusion.dev/helix-styles": "^__HELIX_VERSION__",
|
|
14
|
-
"next": "^16.
|
|
14
|
+
"next": "^16.3.0",
|
|
15
15
|
"react": "^19.2.0",
|
|
16
16
|
"react-dom": "^19.2.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"
|
|
19
|
+
"@types/node": "^22.10.0",
|
|
20
|
+
"@types/react": "^19.2.0",
|
|
21
|
+
"@types/react-dom": "^19.2.0",
|
|
22
|
+
"typescript": "^7.0.2"
|
|
20
23
|
}
|
|
21
24
|
}
|
|
@@ -15,8 +15,10 @@
|
|
|
15
15
|
"react-dom": "^19.2.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@
|
|
19
|
-
"
|
|
20
|
-
"
|
|
18
|
+
"@types/react": "^19.2.0",
|
|
19
|
+
"@types/react-dom": "^19.2.0",
|
|
20
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
21
|
+
"typescript": "^7.0.2",
|
|
22
|
+
"vite": "^8.3.0"
|
|
21
23
|
}
|
|
22
24
|
}
|
|
@@ -8,11 +8,14 @@
|
|
|
8
8
|
],
|
|
9
9
|
"module": "ESNext",
|
|
10
10
|
"moduleResolution": "bundler",
|
|
11
|
+
"noEmit": true,
|
|
11
12
|
"skipLibCheck": true,
|
|
12
13
|
"strict": true,
|
|
13
14
|
"target": "ES2023",
|
|
14
|
-
"
|
|
15
|
-
|
|
15
|
+
"types": [
|
|
16
|
+
"vite/client"
|
|
17
|
+
],
|
|
18
|
+
"verbatimModuleSyntax": true
|
|
16
19
|
},
|
|
17
20
|
"include": [
|
|
18
21
|
"src",
|