Skip to content

Commit

Permalink
[migrate] upgrade to TypeScript 5 & React 18
Browse files Browse the repository at this point in the history
[fix] some detail bugs
  • Loading branch information
TechQuery committed Sep 9, 2024
1 parent d318d8b commit 3b2f777
Show file tree
Hide file tree
Showing 24 changed files with 244 additions and 230 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@

## 技术栈

- Node.js v20+
- Parcel v2+
- SCSS:CSS 预处理
- React 16.2.0
- Node.js v20+
- TypeScript v5+
- Parcel v2+
- SCSS:CSS 预处理
- React v18+

## 项目结构

- pubilc ------------------- 公共文件存放
- src ---------------------- 项目源代码
- layouts ------------- 页面结构
- pages ------------- 具体页面
- pubilc ------------------- 公共文件存放
- src ---------------------- 项目源代码
- layouts ------------- 页面结构
- pages ------------- 具体页面

[1]: https://github.com/FreeCodeCamp-Chengdu/fcc.chengdu/actions/workflows/main.yml
[1]: https://github.com/FreeCodeCamp-Chengdu/fcc.chengdu/actions/workflows/main.yml
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
"dependencies": {
"@fortawesome/fontawesome": "^1.1.3",
"@fortawesome/fontawesome-free-brands": "^5.0.6",
"classnames": "^2.2.5",
"classnames": "^2.5.1",
"eeyellow.timeline": "github:eeyellow/eeyellow.Timeline",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-router-dom": "^4.2.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.1",
"web-utility": "^4.4.0"
},
"scripts": {
"prepare": "husky",
"test": "lint-staged",
"test": "lint-staged && tsc --noEmit",
"clean": "rm -rf .parcel-cache/ dist/",
"start": "npm run clean && parcel public/index.html",
"pack": "npm run clean && parcel build public/index.html --public-url .",
Expand All @@ -30,11 +30,16 @@
"@parcel/packager-raw-url": "~2.12.0",
"@parcel/transformer-sass": "~2.12.0",
"@parcel/transformer-webmanifest": "~2.12.0",
"@types/jquery": "^3.5.30",
"@types/node": "^20.16.5",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"husky": "^9.1.5",
"lint-staged": "^15.2.10",
"parcel": "~2.12.0",
"prettier": "^3.3.3",
"process": "^0.11.10",
"typescript": "~5.5.4",
"workbox-cli": "^7.1.0"
},
"prettier": {
Expand Down
Loading

0 comments on commit 3b2f777

Please sign in to comment.