@kudzujs/core 0.1.0 → 0.2.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/README.md +11 -1
- package/package.json +8 -3
package/README.md
CHANGED
|
@@ -10,10 +10,20 @@ Brand assets, favicons, manifest icons, and the 1200×630 social preview live in
|
|
|
10
10
|
|
|
11
11
|
Kudzu keeps the familiar function-component, props, children, event-handler, and `useState` shape. Static components compile to HTML. Simple interactions compile to small behavior commands, while normal sync or async JavaScript handlers compile to external ESM.
|
|
12
12
|
|
|
13
|
-
> Experimental `0.
|
|
13
|
+
> Experimental `0.2.x`: the compiler API and supported TSX surface may change.
|
|
14
14
|
|
|
15
15
|
## Install
|
|
16
16
|
|
|
17
|
+
Create a new project:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm create kudzu@latest my-app
|
|
21
|
+
cd my-app
|
|
22
|
+
npm run dev
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Or add Kudzu to an existing project:
|
|
26
|
+
|
|
17
27
|
```bash
|
|
18
28
|
npm install @kudzujs/core
|
|
19
29
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kudzujs/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "HTML-first TSX framework with synchronous state semantics and no virtual DOM",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"bin": {
|
|
34
|
-
"kudzu": "
|
|
34
|
+
"kudzu": "bin/kudzu.mjs"
|
|
35
35
|
},
|
|
36
36
|
"exports": {
|
|
37
37
|
".": {
|
|
@@ -48,9 +48,14 @@
|
|
|
48
48
|
"dev": "node ./bin/kudzu.mjs dev",
|
|
49
49
|
"check": "tsc --noEmit && node ./bin/kudzu.mjs build",
|
|
50
50
|
"test": "node --test",
|
|
51
|
-
"prepublishOnly": "npm run check && npm test"
|
|
51
|
+
"prepublishOnly": "npm run check && npm test",
|
|
52
|
+
"deploy": "wrangler deploy",
|
|
53
|
+
"preview": "wrangler dev"
|
|
52
54
|
},
|
|
53
55
|
"dependencies": {
|
|
54
56
|
"typescript": "^5.9.2"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"wrangler": "^4.112.0"
|
|
55
60
|
}
|
|
56
61
|
}
|