Skip to content

Commit fcd9c50

Browse files
committed
[add] GitHub PR badges & GitPod extensions
[optimize] upgrade to Node.js 20, PNPM 9, KoAJAX 3 & other latest Upstream packages/actions
1 parent e5c125c commit fcd9c50

File tree

6 files changed

+3742
-2893
lines changed

6 files changed

+3742
-2893
lines changed

.github/pr-badge.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
- icon: visualstudio
2+
label: 'GitHub.dev'
3+
message: 'PR-$prNumber'
4+
color: 'blue'
5+
url: 'https://github.dev/$owner/$repo/pull/$prNumber'
6+
7+
- icon: github
8+
label: 'GitHub codespaces'
9+
message: 'PR-$prNumber'
10+
color: 'black'
11+
url: 'https://codespaces.new/$owner/$repo/pull/$prNumber'
12+
13+
- icon: git
14+
label: 'GitPod.io'
15+
message: 'PR-$prNumber'
16+
color: 'orange'
17+
url: 'https://gitpod.io/?autostart=true#https://github.com/$owner/$repo/pull/$prNumber'

.github/workflows/main.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,30 @@ on:
66
jobs:
77
Build-and-Publish:
88
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
id-token: write
912
steps:
10-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1114

12-
- uses: pnpm/action-setup@v2
15+
- uses: pnpm/action-setup@v4
1316
with:
14-
version: 8
15-
- uses: actions/setup-node@v3
17+
version: 9
18+
- uses: actions/setup-node@v4
1619
with:
17-
node-version: 18
20+
node-version: 20
1821
registry-url: https://registry.npmjs.org
1922
cache: pnpm
2023
- name: Install Dependencies
2124
run: pnpm i --frozen-lockfile
2225

2326
- name: Build & Publish
24-
run: npm publish
27+
run: npm publish --access public --provenance
2528
env:
2629
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2730

2831
- name: Update document
29-
uses: peaceiris/actions-gh-pages@v3
32+
uses: peaceiris/actions-gh-pages@v4
3033
with:
3134
publish_dir: ./docs
3235
personal_token: ${{ secrets.GITHUB_TOKEN }}

.gitpod.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
- jock.svg
11+
- redhat.vscode-yaml
12+
- clinyong.vscode-css-modules
13+
- akamud.vscode-caniuse
14+
- visualstudioexptteam.intellicode-api-usage-examples
15+
- pflannery.vscode-versionlens
16+
- christian-kohler.npm-intellisense
17+
- esbenp.prettier-vscode
18+
- rangav.vscode-thunder-client
19+
- eamodio.gitlens
20+
- github.vscode-pull-request-github
21+
- github.vscode-github-actions
22+
tasks:
23+
- init: pnpm i
24+
command: pnpm preview

package.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "open-react-map",
3-
"version": "0.8.0",
3+
"version": "0.8.1",
44
"license": "LGPL-3.0-or-later",
55
"author": "[email protected]",
66
"description": "Compatible Map component supports Geo services with Freedom or Open API, based on TypeScript, MobX & React.",
@@ -27,13 +27,13 @@
2727
"types": "dist/index.d.ts",
2828
"main": "dist/index.js",
2929
"dependencies": {
30-
"@swc/helpers": "^0.5.3",
31-
"@types/leaflet": "^1.9.8",
32-
"koajax": "^0.9.6",
30+
"@swc/helpers": "^0.5.13",
31+
"@types/leaflet": "^1.9.13",
32+
"koajax": "^3.0.2",
3333
"leaflet": "^1.9.4",
3434
"mobx-react-helper": "^0.3.1",
3535
"react-leaflet": "^4.2.1",
36-
"web-utility": "^4.1.3"
36+
"web-utility": "^4.4.1"
3737
},
3838
"peerDependencies": {
3939
"mobx": ">=6.11",
@@ -42,28 +42,28 @@
4242
"react-dom": ">=18"
4343
},
4444
"devDependencies": {
45-
"@parcel/config-default": "~2.11.0",
46-
"@parcel/packager-ts": "~2.11.0",
47-
"@parcel/transformer-typescript-tsc": "~2.11.0",
48-
"@parcel/transformer-typescript-types": "~2.11.0",
49-
"@types/react": "^18.2.48",
50-
"@types/react-dom": "^18.2.18",
51-
"husky": "^9.0.7",
52-
"idea-react": "^2.0.0-rc.0",
45+
"@parcel/config-default": "~2.12.0",
46+
"@parcel/packager-ts": "~2.12.0",
47+
"@parcel/transformer-typescript-tsc": "~2.12.0",
48+
"@parcel/transformer-typescript-types": "~2.12.0",
49+
"@types/react": "^18.3.11",
50+
"@types/react-dom": "^18.3.1",
51+
"husky": "^9.1.6",
52+
"idea-react": "^2.0.0-rc.7",
5353
"koapache": "^2.2.2",
54-
"lint-staged": "^15.2.0",
55-
"mobx": "^6.12.0",
56-
"mobx-react": "^9.1.0",
57-
"parcel": "~2.11.0",
58-
"prettier": "^3.2.4",
54+
"lint-staged": "^15.2.10",
55+
"mobx": "^6.13.5",
56+
"mobx-react": "^9.1.1",
57+
"parcel": "~2.12.0",
58+
"prettier": "^3.3.3",
5959
"prismjs": "^1.29.0",
6060
"process": "^0.11.10",
61-
"react": "^18.2.0",
62-
"react-bootstrap": "^2.10.0",
63-
"react-dom": "^18.2.0",
64-
"typedoc": "^0.25.7",
65-
"typedoc-plugin-mdn-links": "^3.1.14",
66-
"typescript": "~5.3.3"
61+
"react": "^18.3.1",
62+
"react-bootstrap": "^2.10.5",
63+
"react-dom": "^18.3.1",
64+
"typedoc": "^0.26.10",
65+
"typedoc-plugin-mdn-links": "^3.3.4",
66+
"typescript": "~5.6.3"
6767
},
6868
"prettier": {
6969
"singleQuote": true,
@@ -82,8 +82,8 @@
8282
},
8383
"scripts": {
8484
"prepare": "husky",
85-
"test": "lint-staged",
86-
"preview": "cd preview/ && rm -rf ../.parcel-cache dist/ && parcel --open",
85+
"test": "lint-staged && tsc --noEmit",
86+
"preview": "cd preview/ && rm -rf ../.parcel-cache dist/ && parcel",
8787
"pack-preview": "cd preview/ && rm -rf ../.parcel-cache dist/ && parcel build --public-url=. --dist-dir=../docs/preview/",
8888
"pack-docs": "rm -rf docs/ && typedoc source/",
8989
"pack-dist": "rm -rf .parcel-cache/ dist/ && parcel build",

0 commit comments

Comments
 (0)