Skip to content

Commit

Permalink
[add] JSX props & children types
Browse files Browse the repository at this point in the history
[add] VS Code extensions configuration
[fix] Children rendering bugs
[optimize] update Upstream packages
  • Loading branch information
TechQuery committed Jan 9, 2024
1 parent 325e808 commit 5d12f3e
Show file tree
Hide file tree
Showing 12 changed files with 927 additions and 1,167 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ node_modules/
package-lock.json
yarn.lock
/dist/
jsx-runtime.d.ts
jsx-runtime.js
jsx-*runtime.*
docs/
.vscode/settings.json
21 changes: 21 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

vscode:
extensions:
- yzhang.markdown-all-in-one
- redhat.vscode-yaml
- akamud.vscode-caniuse
- visualstudioexptteam.intellicode-api-usage-examples
- pflannery.vscode-versionlens
- christian-kohler.npm-intellisense
- esbenp.prettier-vscode
- eamodio.gitlens
- github.vscode-pull-request-github
- github.vscode-github-actions
tasks:
- init: pnpm i
command: npm test
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ test/
docs/
.husky/
.github/
.vscode/
.vscode/
.gitpod.yml
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers = false
14 changes: 14 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"recommendations": [
"yzhang.markdown-all-in-one",
"redhat.vscode-yaml",
"akamud.vscode-caniuse",
"visualstudioexptteam.intellicode-api-usage-examples",
"pflannery.vscode-versionlens",
"christian-kohler.npm-intellisense",
"esbenp.prettier-vscode",
"eamodio.gitlens",
"github.vscode-pull-request-github",
"github.vscode-github-actions"
]
}
4 changes: 2 additions & 2 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ A light-weight DOM Renderer supports [Web components][1] standard & [TypeScript]

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

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

## Usage

Expand Down Expand Up @@ -87,7 +87,7 @@ console.log(newVNode);
[3]: https://libraries.io/npm/dom-renderer
[4]: https://github.com/EasyWebApp/DOM-Renderer/actions/workflows/main.yml
[5]: https://nodei.co/npm/dom-renderer/
[6]: https://gitpod.io/#https://github.com/EasyWebApp/DOM-Renderer
[6]: https://gitpod.io/?autostart=true#https://github.com/EasyWebApp/DOM-Renderer
[7]: https://codesandbox.io/s/dom-renderer-example-pmcsvs?autoresize=1&expanddevtools=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2Findex.tsx&theme=dark
[8]: https://codesandbox.io/s/mobx-web-components-pvn9rf?autoresize=1&fontsize=14&hidenavigation=1&module=%2Fsrc%2FWebComponent.ts&moduleview=1&theme=dark
[9]: https://github.com/snabbdom/snabbdom
Expand Down
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dom-renderer",
"version": "2.0.0",
"version": "2.0.5",
"license": "LGPL-3.0-or-later",
"author": "shiy2008@gmail.com",
"description": "A light-weight DOM Renderer supports Web components standard & TypeScript language",
Expand All @@ -24,22 +24,22 @@
"types": "dist/index.d.ts",
"main": "dist/index.js",
"dependencies": {
"tslib": "^2.6.1",
"web-utility": "^4.1.0"
"tslib": "^2.6.2",
"web-utility": "^4.1.3"
},
"devDependencies": {
"@types/jest": "^29.5.3",
"@types/node": "^18.17.2",
"@types/jest": "^29.5.11",
"@types/node": "^18.19.5",
"husky": "^8.0.3",
"jest": "^29.6.2",
"jest-environment-jsdom": "^29.6.2",
"lint-staged": "^13.2.3",
"open-cli": "^7.2.0",
"prettier": "^3.0.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.0",
"open-cli": "^8.0.0",
"prettier": "^3.1.1",
"ts-jest": "^29.1.1",
"typedoc": "^0.24.8",
"typedoc-plugin-mdn-links": "^3.0.3",
"typescript": "~5.1.6"
"typedoc": "^0.25.7",
"typedoc-plugin-mdn-links": "^3.1.11",
"typescript": "~5.3.3"
},
"prettier": {
"singleQuote": true,
Expand All @@ -58,7 +58,7 @@
"scripts": {
"prepare": "husky install",
"test": "lint-staged && jest",
"parcel": "tsc -p tsconfig.json && mv dist/jsx-runtime.* . && mv dist/dist/* dist/ && rm -rf dist/dist",
"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",
"build": "rm -rf dist/ docs/ && typedoc && npm run parcel",
"start": "typedoc && open-cli docs/index.html",
"prepublishOnly": "npm test && npm run build"
Expand Down
Loading

0 comments on commit 5d12f3e

Please sign in to comment.