Skip to content

Commit

Permalink
perf: 更新依赖、router添加v7未来标志、优化环境变量命名等
Browse files Browse the repository at this point in the history
  • Loading branch information
huangmingfu committed Nov 14, 2024
1 parent e48385b commit 3eff4b7
Show file tree
Hide file tree
Showing 11 changed files with 467 additions and 421 deletions.
4 changes: 2 additions & 2 deletions .env.dev
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
VITE_NODE_ENV = development

# 接口前缀
VITE_APP_BASE_API = '/dev-api'
VITE_API_BASE_URL = '/dev-api'

# 后端服务地址
VITE_APP_SERVICE_API = 'http://localhost:8888'
VITE_SERVER_URL = 'http://localhost:3000'

# 输出路径
VITE_OUT_DIR = dist-dev
4 changes: 2 additions & 2 deletions .env.pro
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
VITE_NODE_ENV = production

# 接口前缀
VITE_APP_BASE_API = '/pro-api'
VITE_API_BASE_URL = '/pro-api'

# 后端服务地址
VITE_APP_SERVICE_API = 'http://localhost:8888'
VITE_SERVER_URL = 'http://localhost:3000'

# 输出路径
VITE_OUT_DIR = dist-pro
4 changes: 2 additions & 2 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
VITE_NODE_ENV = test

# 接口前缀
VITE_APP_BASE_API = '/test-api'
VITE_API_BASE_URL = '/test-api'

# 后端服务地址
VITE_APP_SERVICE_API = 'http://localhost:8888'
VITE_SERVER_URL = 'http://localhost:3000'

# 输出路径
VITE_OUT_DIR = dist-test
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "一套基于react18、ts、vite5的项目模板,帮助快速搭建react项目",
"version": "1.0.0",
"type": "module",
"packageManager": "[email protected].2",
"packageManager": "[email protected].3",
"author": "huangmingfu <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/huangmingfu/react-ts-template",
Expand Down Expand Up @@ -47,37 +47,37 @@
"lodash-es": "^4.17.21",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.27.0",
"react-router-dom": "^6.28.0",
"zustand": "^5.0.1"
},
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@commitlint/prompt-cli": "^19.5.0",
"@eslint/js": "^9.13.0",
"@eslint/js": "^9.14.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/lodash-es": "^4.17.12",
"@types/node": "^22.8.6",
"@types/node": "^22.9.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react-swc": "^3.7.1",
"eslint": "^9.13.0",
"eslint": "^9.14.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "^0.4.14",
"globals": "^15.11.0",
"globals": "^15.12.0",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"sass": "^1.80.5",
"sass": "^1.80.7",
"stylelint": "^16.10.0",
"stylelint-config-recess-order": "^5.1.1",
"stylelint-config-standard": "^36.0.1",
"stylelint-config-standard-scss": "^13.1.0",
"stylelint-order": "^6.0.4",
"typescript": "~5.6.3",
"typescript-eslint": "^8.12.2",
"vite": "^5.4.10"
"typescript-eslint": "^8.14.0",
"vite": "^5.4.11"
},
"engines": {
"node": ">=18.12.0",
Expand Down
Loading

0 comments on commit 3eff4b7

Please sign in to comment.