Skip to content

Commit c99a169

Browse files
committed
[add] VDOMNode class & Fragment function
[migrate] replace Parcel with TSC for JSX R`untime bundling [optimize] some Logic & Document details
1 parent a9d4843 commit c99a169

File tree

13 files changed

+195
-1621
lines changed

13 files changed

+195
-1621
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
node_modules/
22
package-lock.json
33
yarn.lock
4-
.parcel-cache/
5-
dist/
6-
/jsx-runtime.*
4+
/dist/
5+
jsx-runtime.d.ts
6+
jsx-runtime.js
77
docs/
88
.vscode/settings.json

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.parcel-cache/
21
test/
32
docs/
43
.husky/

ReadMe.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ console.log(newVNode);
3838

3939
### TypeScript
4040

41+
[![Edit DOM Renderer example](https://codesandbox.io/static/img/play-codesandbox.svg)][6]
42+
4143
#### `tsconfig.json`
4244

4345
```json
@@ -67,16 +69,17 @@ console.log(newVNode);
6769

6870
### Inspiration
6971

70-
[![SnabbDOM](https://github.com/snabbdom.png)][6]
72+
[![SnabbDOM](https://github.com/snabbdom.png)][7]
7173

7274
### Prototype
7375

74-
[![Edit DOM renderer](https://codesandbox.io/static/img/play-codesandbox.svg)][7]
76+
[![Edit DOM Renderer](https://codesandbox.io/static/img/play-codesandbox.svg)][8]
7577

7678
[1]: https://www.webcomponents.org/
7779
[2]: https://www.typescriptlang.org/
7880
[3]: https://github.com/EasyWebApp/DOM-Renderer/actions/workflows/main.yml
7981
[4]: https://gitpod.io/#https://github.com/EasyWebApp/DOM-Renderer
8082
[5]: https://nodei.co/npm/dom-renderer/
81-
[6]: https://github.com/snabbdom/snabbdom
82-
[7]: https://codesandbox.io/s/dom-renderer-pglxkx?autoresize=1&expanddevtools=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2Findex.ts&theme=dark
83+
[6]: https://codesandbox.io/s/dom-renderer-example-pmcsvs?autoresize=1&expanddevtools=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2Findex.tsx&theme=dark
84+
[7]: https://github.com/snabbdom/snabbdom
85+
[8]: https://codesandbox.io/s/dom-renderer-pglxkx?autoresize=1&expanddevtools=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2Findex.ts&theme=dark

package.json

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dom-renderer",
3-
"version": "2.0.0-beta.6",
3+
"version": "2.0.0-rc.3",
44
"license": "LGPL-3.0-or-later",
55
"author": "[email protected]",
66
"description": "A light-weight DOM Renderer supports Web components standard & TypeScript language",
@@ -20,26 +20,21 @@
2020
"bugs": {
2121
"url": "https://github.com/EasyWebApp/DOM-Renderer/issues"
2222
},
23-
"source": "source/index.ts",
23+
"source": "source/dist/index.ts",
2424
"types": "dist/index.d.ts",
25-
"module": "dist/index.esm.js",
2625
"main": "dist/index.js",
2726
"dependencies": {
28-
"@swc/helpers": "~0.4.14",
2927
"tslib": "^2.6.1",
3028
"web-utility": "^4.1.0"
3129
},
3230
"devDependencies": {
33-
"@parcel/packager-ts": "~2.8.3",
34-
"@parcel/transformer-typescript-types": "~2.8.3",
3531
"@types/jest": "^29.5.3",
3632
"@types/node": "^18.17.1",
3733
"husky": "^8.0.3",
3834
"jest": "^29.6.2",
3935
"jest-environment-jsdom": "^29.6.2",
4036
"lint-staged": "^13.2.3",
4137
"open-cli": "^7.2.0",
42-
"parcel": "~2.8.3",
4338
"prettier": "^3.0.0",
4439
"ts-jest": "^29.1.1",
4540
"typedoc": "^0.24.8",
@@ -60,18 +55,11 @@
6055
"testEnvironment": "jsdom"
6156
},
6257
"browserslist": "> 0.5%, last 2 versions, not dead, IE 11",
63-
"targets": {
64-
"types": false,
65-
"main": {
66-
"optimize": true
67-
}
68-
},
6958
"scripts": {
7059
"prepare": "husky install",
7160
"test": "lint-staged && jest",
72-
"pack-jsx": "tsc -p tsconfig.json && mv dist/jsx-runtime.* . && rm dist/*.js",
73-
"parcel": "npm run pack-jsx && parcel build",
74-
"build": "rm -rf dist/ docs/ && typedoc source/ && npm run parcel",
61+
"parcel": "tsc -p tsconfig.json && mv dist/jsx-runtime.* . && mv dist/dist/* dist/ && rm -rf dist/dist",
62+
"build": "rm -rf dist/ docs/ && typedoc source/dist/ && npm run parcel",
7563
"start": "typedoc source/ && open-cli docs/index.html",
7664
"prepublishOnly": "npm test && npm run build"
7765
}

0 commit comments

Comments
 (0)