Skip to content

Commit 6ced890

Browse files
committed
[migrate] replace TTS model with MobX-i18n 0.6
[migrate] upgrade to ES Decorator stage-3, Node.js 20, PNPM 9, Husky 9, React 18 & other latest Upstream packages
1 parent 6d7d18d commit 6ced890

File tree

17 files changed

+5564
-4482
lines changed

17 files changed

+5564
-4482
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
permissions:
1414
contents: write
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

18-
- uses: pnpm/action-setup@v2
18+
- uses: pnpm/action-setup@v4
1919
with:
20-
version: 8
21-
- uses: actions/setup-node@v3
20+
version: 9
21+
- uses: actions/setup-node@v4
2222
if: ${{ !env.VERCEL_TOKEN || !env.VERCEL_ORG_ID || !env.VERCEL_PROJECT_ID }}
2323
with:
24-
node-version: 18
24+
node-version: 20
2525
cache: pnpm
2626

2727
- name: Install Dependencies
@@ -33,7 +33,7 @@ jobs:
3333
run: pnpm build
3434

3535
- name: Deploy to GitHub pages
36-
uses: peaceiris/actions-gh-pages@v3
36+
uses: peaceiris/actions-gh-pages@v4
3737
if: ${{ !env.VERCEL_TOKEN || !env.VERCEL_ORG_ID || !env.VERCEL_PROJECT_ID }}
3838
with:
3939
publish_dir: ./dist

.github/workflows/pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
permissions:
1414
contents: write
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
if: ${{ env.VERCEL_TOKEN && env.VERCEL_ORG_ID && env.VERCEL_PROJECT_ID }}
1818

1919
- name: Deploy to Vercel

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
3-
. "$(dirname "$0")/_/husky.sh"
4-
51
npm test

.husky/pre-push

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
#!/bin/sh
2-
3-
. "$(dirname "$0")/_/husky.sh"
4-
51
npm run build

.parcelrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "@parcel/config-default",
3+
"transformers": {
4+
"*.{ts,tsx}": [
5+
"@parcel/transformer-typescript-tsc"
6+
]
7+
}
8+
}

ReadMe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ Wiki map [PWA][4] with [Text-to-Speak][5] support, which is based on [OpenStreet
77
## Technology stack
88

99
- Language: [TypeScript v5][2]
10-
- Component engine: [React v17][1]
10+
- Component engine: [React v18][1]
1111
- State management: [MobX v6][3]
1212
- Component suite: [React Bootstrap v2][8]
13-
- HTTP Client: [KoAJAX][9]
13+
- HTTP Client: [KoAJAX v3][9]
1414
- PWA framework: [Workbox v7][10]
1515
- Package bundler: [Parcel v2][11]
1616
- CI / CD: GitHub [Actions][12] + [Pages][13]

package.json

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,39 @@
66
"description": "Wiki map PWA with Text-to-Speak support, which is based on OpenStreetMap & Wikipedia API, and can be used as a trusted Tour guide.",
77
"dependencies": {
88
"browser-unhandled-rejection": "^1.0.2",
9-
"idea-react": "^1.0.0-rc.22",
10-
"iterable-observer": "^1.0.0",
11-
"koajax": "^0.8.6",
9+
"idea-react": "^1.0.0-rc.31",
10+
"koajax": "^3.0.2",
1211
"lodash": "^4.17.21",
13-
"mobx": "^6.10.2",
14-
"mobx-i18n": "^0.4.1",
15-
"mobx-react": "^9.0.1",
16-
"mobx-restful": "^0.6.11",
17-
"mobx-restful-table": "^1.1.2",
18-
"open-react-map": "^0.6.4",
19-
"react": "^17.0.2",
20-
"react-bootstrap": "^2.8.0",
21-
"react-dom": "^17.0.2",
12+
"mobx": "^6.13.3",
13+
"mobx-i18n": "^0.6.0",
14+
"mobx-react": "^9.1.1",
15+
"mobx-restful": "^1.0.1",
16+
"mobx-restful-table": "^2.0.0",
17+
"open-react-map": "^0.8.0",
18+
"react": "^18.3.1",
19+
"react-bootstrap": "^2.10.5",
20+
"react-dom": "^18.3.1",
2221
"react-router-class-tools": "^0.1.3",
23-
"react-router-dom": "^6.15.0",
24-
"web-utility": "^4.1.0"
22+
"react-router-dom": "^6.26.2",
23+
"web-utility": "^4.4.0"
2524
},
2625
"devDependencies": {
27-
"@parcel/packager-raw-url": "~2.9.3",
28-
"@parcel/transformer-less": "~2.9.3",
29-
"@parcel/transformer-webmanifest": "~2.9.3",
30-
"@types/lodash": "^4.14.197",
31-
"@types/node": "^18.17.13",
32-
"@types/react": "^17.0.65",
33-
"@types/react-dom": "^17.0.20",
34-
"husky": "^8.0.3",
35-
"lint-staged": "^14.0.1",
36-
"parcel": "~2.9.3",
37-
"prettier": "^3.0.3",
26+
"@parcel/config-default": "~2.12.0",
27+
"@parcel/packager-raw-url": "~2.12.0",
28+
"@parcel/transformer-less": "~2.12.0",
29+
"@parcel/transformer-typescript-tsc": "~2.12.0",
30+
"@parcel/transformer-webmanifest": "~2.12.0",
31+
"@types/lodash": "^4.17.10",
32+
"@types/node": "^20.16.10",
33+
"@types/react": "^18.3.11",
34+
"@types/react-dom": "^18.3.0",
35+
"husky": "^9.1.6",
36+
"lint-staged": "^15.2.10",
37+
"parcel": "~2.12.0",
38+
"prettier": "^3.3.3",
3839
"process": "^0.11.10",
39-
"typescript": "~5.2.2",
40-
"workbox-cli": "^7.0.0"
40+
"typescript": "~5.6.2",
41+
"workbox-cli": "^7.1.0"
4142
},
4243
"prettier": {
4344
"singleQuote": true,
@@ -50,10 +51,11 @@
5051
},
5152
"browserslist": "> 0.5%, last 2 versions, not dead, IE 11",
5253
"scripts": {
53-
"prepare": "husky install",
54+
"prepare": "husky",
5455
"test": "lint-staged",
55-
"start": "parcel src/index.html --open",
56-
"pack": "parcel build src/index.html --public-url .",
57-
"build": "rm -rf dist/ && npm run pack && workbox generateSW"
56+
"clean": "rm -rf dist/ .parcel-cache/",
57+
"start": "npm run clean && parcel src/index.html",
58+
"pack": "npm run clean && parcel build src/index.html --public-url .",
59+
"build": "npm run pack && workbox generateSW"
5860
}
5961
}

0 commit comments

Comments
 (0)