@vanijs/vani 0.1.0 → 0.3.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/DOCS.md +782 -7
- package/README.md +51 -3
- package/dist/lib/index.d.mts +31 -158
- package/dist/lib/index.mjs +1 -1
- package/dist/lib/jsx-dev-runtime.d.mts +2 -0
- package/dist/lib/jsx-dev-runtime.mjs +1 -0
- package/dist/lib/jsx-runtime.d.mts +27 -0
- package/dist/lib/jsx-runtime.mjs +1 -0
- package/dist/lib/runtime-BIk4OH1t.mjs +1 -0
- package/dist/lib/runtime-Dp-nlil7.d.mts +166 -0
- package/llms.txt +1 -6
- package/package.json +61 -19
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vanijs/vani",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Web-standards-first UI runtime with explicit updates, fine-grained DOM ownership, and zero dependencies.
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Web-standards-first UI runtime with explicit updates, fine-grained DOM ownership, and zero dependencies. JS-first, transpiler-free, with an optional JSX adapter. Built for SPA, SSR, and SSG.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ui",
|
|
7
7
|
"frontend",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"fine-grained",
|
|
12
12
|
"explicit-rendering",
|
|
13
13
|
"no-virtual-dom",
|
|
14
|
-
"
|
|
14
|
+
"js-first",
|
|
15
|
+
"jsx-adapter",
|
|
15
16
|
"no-compiler",
|
|
16
17
|
"ssr",
|
|
17
18
|
"ssg",
|
|
@@ -34,8 +35,22 @@
|
|
|
34
35
|
"type": "module",
|
|
35
36
|
"exports": {
|
|
36
37
|
".": {
|
|
37
|
-
"
|
|
38
|
-
|
|
38
|
+
"import": {
|
|
39
|
+
"types": "./dist/lib/index.d.mts",
|
|
40
|
+
"default": "./dist/lib/index.mjs"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"./jsx-runtime": {
|
|
44
|
+
"import": {
|
|
45
|
+
"types": "./dist/lib/jsx-runtime.d.mts",
|
|
46
|
+
"default": "./dist/lib/jsx-runtime.mjs"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"./jsx-dev-runtime": {
|
|
50
|
+
"import": {
|
|
51
|
+
"types": "./dist/lib/jsx-dev-runtime.d.mts",
|
|
52
|
+
"default": "./dist/lib/jsx-dev-runtime.mjs"
|
|
53
|
+
}
|
|
39
54
|
}
|
|
40
55
|
},
|
|
41
56
|
"module": "./dist/lib/index.mjs",
|
|
@@ -48,17 +63,37 @@
|
|
|
48
63
|
"README.md",
|
|
49
64
|
"LICENSE"
|
|
50
65
|
],
|
|
66
|
+
"scripts": {
|
|
67
|
+
"build": "rm -rf dist && vite build && pnpm run build:lib",
|
|
68
|
+
"build:lib": "pnpm tsdown src/vani/index.ts src/vani/jsx-runtime.ts src/vani/jsx-dev-runtime.ts --minify --out-dir dist/lib --dts",
|
|
69
|
+
"dev": "vite",
|
|
70
|
+
"dev:debug": "open http://localhost:4555 && PORT=4555 bun run --watch src/debug/*.html",
|
|
71
|
+
"format": "prettier --write . && pnpm dlx sort-package-json",
|
|
72
|
+
"lint": "pnpm run typecheck && pnpm run lint:eslint && pnpm run lint:circular",
|
|
73
|
+
"lint:circular": "pnpm dlx madge --circular --extensions ts src/",
|
|
74
|
+
"lint:eslint": "eslint .",
|
|
75
|
+
"lint:unused": "pnpm dlx knip --exclude exports",
|
|
76
|
+
"prepublishOnly": "pnpm format && pnpm lint && pnpm run build:lib && pnpm publint",
|
|
77
|
+
"preview": "vite preview",
|
|
78
|
+
"typecheck": "tsc --noEmit"
|
|
79
|
+
},
|
|
51
80
|
"dependencies": {},
|
|
52
81
|
"devDependencies": {
|
|
82
|
+
"@babel/runtime": "^7.28.6",
|
|
83
|
+
"@codemirror/commands": "^6.10.1",
|
|
84
|
+
"@codemirror/lang-javascript": "^6.2.4",
|
|
85
|
+
"@codemirror/state": "^6.5.4",
|
|
86
|
+
"@codemirror/view": "^6.39.11",
|
|
53
87
|
"@eslint/js": "^9.39.2",
|
|
54
88
|
"@shikijs/langs": "^3.21.0",
|
|
55
89
|
"@shikijs/themes": "^3.21.0",
|
|
56
90
|
"@tailwindcss/vite": "^4.1.18",
|
|
57
91
|
"@types/bun": "^1.3.6",
|
|
58
92
|
"@types/node": "^25.0.9",
|
|
93
|
+
"@uiw/codemirror-theme-vscode": "^4.25.4",
|
|
59
94
|
"eslint": "^9.39.2",
|
|
60
95
|
"globals": "^17.0.0",
|
|
61
|
-
"lucide-
|
|
96
|
+
"lucide-static": "^0.562.0",
|
|
62
97
|
"prettier": "^3.8.0",
|
|
63
98
|
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
64
99
|
"publint": "^0.3.16",
|
|
@@ -72,18 +107,25 @@
|
|
|
72
107
|
"vite": "npm:rolldown-vite@7.3.1"
|
|
73
108
|
},
|
|
74
109
|
"publishConfig": {
|
|
75
|
-
"access": "public"
|
|
110
|
+
"access": "public",
|
|
111
|
+
"exports": {
|
|
112
|
+
".": {
|
|
113
|
+
"types": "./dist/lib/index.d.mts",
|
|
114
|
+
"default": "./dist/lib/index.mjs"
|
|
115
|
+
},
|
|
116
|
+
"./jsx-runtime": {
|
|
117
|
+
"types": "./dist/lib/jsx-runtime.d.mts",
|
|
118
|
+
"default": "./dist/lib/jsx-runtime.mjs"
|
|
119
|
+
},
|
|
120
|
+
"./jsx-dev-runtime": {
|
|
121
|
+
"types": "./dist/lib/jsx-dev-runtime.d.mts",
|
|
122
|
+
"default": "./dist/lib/jsx-dev-runtime.mjs"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
76
125
|
},
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"format": "prettier --write . && pnpm dlx sort-package-json",
|
|
82
|
-
"lint": "pnpm run typecheck && pnpm run lint:eslint && pnpm run lint:circular",
|
|
83
|
-
"lint:circular": "pnpm dlx madge --circular --extensions ts src/",
|
|
84
|
-
"lint:eslint": "eslint .",
|
|
85
|
-
"lint:unused": "pnpm dlx knip --exclude exports",
|
|
86
|
-
"preview": "vite preview",
|
|
87
|
-
"typecheck": "tsc --noEmit"
|
|
126
|
+
"pnpm": {
|
|
127
|
+
"overrides": {
|
|
128
|
+
"vite": "npm:rolldown-vite@7.3.1"
|
|
129
|
+
}
|
|
88
130
|
}
|
|
89
|
-
}
|
|
131
|
+
}
|