create-kudzu 0.1.102 → 0.1.103
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/index.mjs +6 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -33,7 +33,7 @@ const files = {
|
|
|
33
33
|
check: "tsc --noEmit && kudzu build"
|
|
34
34
|
},
|
|
35
35
|
dependencies: {
|
|
36
|
-
"@kudzujs/core": "^0.
|
|
36
|
+
"@kudzujs/core": "^0.9.0"
|
|
37
37
|
},
|
|
38
38
|
devDependencies: {
|
|
39
39
|
typescript: "^5.9.2"
|
|
@@ -51,7 +51,9 @@ const files = {
|
|
|
51
51
|
}
|
|
52
52
|
}, null, 2)}\n`,
|
|
53
53
|
".gitignore": "node_modules/\ndist/\n.kudzu/\n",
|
|
54
|
-
"src/components/SiteHeader.tsx": `
|
|
54
|
+
"src/components/SiteHeader.tsx": `import "../style.css"
|
|
55
|
+
|
|
56
|
+
export function SiteHeader({ current }: { current: "home" | "about" }) {
|
|
55
57
|
return <header className="site-header">
|
|
56
58
|
<a className="brand" href="/"><span>K</span>Kudzu</a>
|
|
57
59
|
<nav aria-label="Main navigation">
|
|
@@ -128,7 +130,7 @@ export default function HomePage() {
|
|
|
128
130
|
<CapabilityCard number="03" title="Static HTML" description="Pages without browser behavior emit no JavaScript." output="about.html + 0 B JS" />
|
|
129
131
|
<CapabilityCard number="04" title="Local state" description="Use React-shaped state and synchronous event handlers." output="useState(0)" />
|
|
130
132
|
<CapabilityCard number="05" title="Metadata" description="Export page titles, descriptions, and theme colors." output="export const metadata" />
|
|
131
|
-
<CapabilityCard number="06" title="Source CSS" description="CSS
|
|
133
|
+
<CapabilityCard number="06" title="Source CSS" description="Imported CSS is emitted only for routes that reach it." output="src/style.css" />
|
|
132
134
|
</div>
|
|
133
135
|
</section>
|
|
134
136
|
</main>
|
|
@@ -216,7 +218,7 @@ This starter is a working Kudzu showcase, not an empty scaffold.
|
|
|
216
218
|
- \`src/pages/index.tsx\` demonstrates metadata, state, handlers, and component composition.
|
|
217
219
|
- \`src/pages/about.tsx\` is a static route that ships zero client JavaScript.
|
|
218
220
|
- \`src/components\` contains reusable typed function components.
|
|
219
|
-
- \`src/style.css\` is
|
|
221
|
+
- \`src/style.css\` is imported by the shared header and linked only by routes that reach it.
|
|
220
222
|
|
|
221
223
|
\`kudzu.config.mjs\` is optional. Add it only when the project needs a base path, external public directory, transformed source styles, global metadata, navigation groups, or post-build artifacts.
|
|
222
224
|
|