Skip to content

Commit fe6aa8b

Browse files
committed
[add] JSX props & children types
[add] VS Code extensions configuration [optimize] update Upstream packages
1 parent 325e808 commit fe6aa8b

11 files changed

+898
-1147
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ node_modules/
22
package-lock.json
33
yarn.lock
44
/dist/
5-
jsx-runtime.d.ts
6-
jsx-runtime.js
5+
jsx-*runtime.*
76
docs/
87
.vscode/settings.json

.gitpod.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This configuration file was automatically generated by Gitpod.
2+
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
3+
# and commit this file to your remote git repository to share the goodness with others.
4+
5+
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
6+
7+
vscode:
8+
extensions:
9+
- yzhang.markdown-all-in-one
10+
- redhat.vscode-yaml
11+
- akamud.vscode-caniuse
12+
- visualstudioexptteam.intellicode-api-usage-examples
13+
- pflannery.vscode-versionlens
14+
- christian-kohler.npm-intellisense
15+
- esbenp.prettier-vscode
16+
- eamodio.gitlens
17+
- github.vscode-pull-request-github
18+
- github.vscode-github-actions
19+
tasks:
20+
- init: pnpm i
21+
command: npm test

.npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ test/
22
docs/
33
.husky/
44
.github/
5-
.vscode/
5+
.vscode/
6+
.gitpod.yml

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers = false

.vscode/extensions.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"recommendations": [
3+
"yzhang.markdown-all-in-one",
4+
"redhat.vscode-yaml",
5+
"akamud.vscode-caniuse",
6+
"visualstudioexptteam.intellicode-api-usage-examples",
7+
"pflannery.vscode-versionlens",
8+
"christian-kohler.npm-intellisense",
9+
"esbenp.prettier-vscode",
10+
"eamodio.gitlens",
11+
"github.vscode-pull-request-github",
12+
"github.vscode-github-actions"
13+
]
14+
}

ReadMe.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ A light-weight DOM Renderer supports [Web components][1] standard & [TypeScript]
77

88
[![NPM](https://nodei.co/npm/dom-renderer.png?downloads=true&downloadRank=true&stars=true)][5]
99

10-
[![Open in GitPod](https://img.shields.io/badge/GitPod-dev--now-blue?logo=gitpod)][6]
10+
[![Open in GitPod](https://gitpod.io/button/open-in-gitpod.svg)][6]
1111

1212
## Usage
1313

@@ -87,7 +87,7 @@ console.log(newVNode);
8787
[3]: https://libraries.io/npm/dom-renderer
8888
[4]: https://github.com/EasyWebApp/DOM-Renderer/actions/workflows/main.yml
8989
[5]: https://nodei.co/npm/dom-renderer/
90-
[6]: https://gitpod.io/#https://github.com/EasyWebApp/DOM-Renderer
90+
[6]: https://gitpod.io/?autostart=true#https://github.com/EasyWebApp/DOM-Renderer
9191
[7]: https://codesandbox.io/s/dom-renderer-example-pmcsvs?autoresize=1&expanddevtools=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2Findex.tsx&theme=dark
9292
[8]: https://codesandbox.io/s/mobx-web-components-pvn9rf?autoresize=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2FWebComponent.ts&moduleview=1&theme=dark
9393
[9]: https://github.com/snabbdom/snabbdom

package.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dom-renderer",
3-
"version": "2.0.0",
3+
"version": "2.0.4",
44
"license": "LGPL-3.0-or-later",
55
"author": "[email protected]",
66
"description": "A light-weight DOM Renderer supports Web components standard & TypeScript language",
@@ -24,22 +24,22 @@
2424
"types": "dist/index.d.ts",
2525
"main": "dist/index.js",
2626
"dependencies": {
27-
"tslib": "^2.6.1",
28-
"web-utility": "^4.1.0"
27+
"tslib": "^2.6.2",
28+
"web-utility": "^4.1.3"
2929
},
3030
"devDependencies": {
31-
"@types/jest": "^29.5.3",
32-
"@types/node": "^18.17.2",
31+
"@types/jest": "^29.5.11",
32+
"@types/node": "^18.19.4",
3333
"husky": "^8.0.3",
34-
"jest": "^29.6.2",
35-
"jest-environment-jsdom": "^29.6.2",
36-
"lint-staged": "^13.2.3",
37-
"open-cli": "^7.2.0",
38-
"prettier": "^3.0.1",
34+
"jest": "^29.7.0",
35+
"jest-environment-jsdom": "^29.7.0",
36+
"lint-staged": "^15.2.0",
37+
"open-cli": "^8.0.0",
38+
"prettier": "^3.1.1",
3939
"ts-jest": "^29.1.1",
40-
"typedoc": "^0.24.8",
41-
"typedoc-plugin-mdn-links": "^3.0.3",
42-
"typescript": "~5.1.6"
40+
"typedoc": "^0.25.6",
41+
"typedoc-plugin-mdn-links": "^3.1.10",
42+
"typescript": "~5.3.3"
4343
},
4444
"prettier": {
4545
"singleQuote": true,
@@ -58,7 +58,7 @@
5858
"scripts": {
5959
"prepare": "husky install",
6060
"test": "lint-staged && jest",
61-
"parcel": "tsc -p tsconfig.json && mv dist/jsx-runtime.* . && mv dist/dist/* dist/ && rm -rf dist/dist",
61+
"parcel": "tsc -p tsconfig.json && mv dist/jsx-runtime.* . && cp jsx-runtime.js jsx-dev-runtime.js && mv dist/dist/* dist/ && rm -rf dist/dist",
6262
"build": "rm -rf dist/ docs/ && typedoc && npm run parcel",
6363
"start": "typedoc && open-cli docs/index.html",
6464
"prepublishOnly": "npm test && npm run build"

0 commit comments

Comments
 (0)