chore: 配置 GitHub Pages 部署
- 添加 homepage 字段指向 GitHub Pages 地址 - 添加 predeploy 和 deploy 脚本 - 安装 gh-pages 依赖 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
"name": "foreign-trade-education-web",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"homepage": "https://du9uay.github.io/AIcourse-education-web",
|
||||
"dependencies": {
|
||||
"@dnd-kit/core": "^6.3.1",
|
||||
"@dnd-kit/sortable": "^10.0.0",
|
||||
@@ -22,7 +23,9 @@
|
||||
"start": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test",
|
||||
"eject": "react-scripts eject"
|
||||
"eject": "react-scripts eject",
|
||||
"predeploy": "npm run build",
|
||||
"deploy": "gh-pages -d build"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
@@ -46,6 +49,7 @@
|
||||
"@types/jest": "^27.5.2",
|
||||
"@types/react-beautiful-dnd": "^13.1.8",
|
||||
"autoprefixer": "^10.4.16",
|
||||
"gh-pages": "^6.3.0",
|
||||
"postcss": "^8.4.32",
|
||||
"tailwindcss": "^3.3.6"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user