Skip to content

Commit 96d49fe

Browse files
committed
feat: 1.修复打包问题,2.页面样式调整,3.测试问题调整
1 parent e3f8a54 commit 96d49fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+3881
-4383
lines changed

.env.dev

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
API_URL=http://localhost:8600

.env.development

-1
This file was deleted.

.env.prod

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
API_URL=http://localhost:8600

.env.production

-1
This file was deleted.

.env.test

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
API_URL=http://localhost:8600

Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM nginx:stable-alpine-perl
2+
3+
4+
5+
COPY dist/ /usr/share/nginx/html/
6+
7+
EXPOSE 8900
8+
9+
CMD ["nginx", "-g", "daemon off;"]

package.json

+22-23
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
{
22
"name": "ClearX",
3-
"version": "1.0.0",
4-
"description": "一站式门店管理平台",
3+
"version": "0.1.0-BETA",
4+
"description": "Turbo快速开发框架",
55
"license": "MIT",
66
"author": "[email protected]",
77
"keywords": [
88
"react",
9-
"boilerplate",
10-
"javaScript",
11-
"starter",
129
"vite",
13-
"material-ui",
10+
"semi-ui",
1411
"axios",
15-
"rrd",
1612
"prettier",
1713
"recoil"
1814
],
1915
"scripts": {
20-
"dev": "vite --open",
21-
"start": "vite --open",
16+
"dev": "vite --open --mode dev --port 5173",
17+
"start": "vite --open --mode dev --port 5173",
2218
"host": "vite --open --host",
23-
"build": "vite build",
19+
"build": "vite build --mode prod -d",
2420
"preview": "vite preview",
2521
"lint": "eslint src --ext .js,.jsx,.ts,.tsx",
2622
"lint:fix": "eslint src --ext .js,.jsx,.ts,.tsx --fix",
@@ -31,47 +27,50 @@
3127
"test:cover": "vitest run --coverage"
3228
},
3329
"dependencies": {
34-
"@douyinfe/semi-icons": "^2.47.0",
35-
"@douyinfe/semi-illustrations": "^2.47.0",
36-
"@douyinfe/semi-ui": "^2.47.0",
30+
"@douyinfe/semi-icons": "^2.48.0",
31+
"@douyinfe/semi-illustrations": "^2.48.0",
32+
"@douyinfe/semi-ui": "^2.48.0",
3733
"@emotion/react": "^11.11.1",
3834
"@emotion/styled": "^11.11.0",
3935
"axios": "^1.6.2",
4036
"classnames": "^2.3.2",
37+
"framer-motion": "^10.16.14",
38+
"iconoir": "^7.1.0",
39+
"iconoir-react": "^7.1.0",
4140
"lodash": "^4.17.21",
4241
"moment": "^2.29.4",
4342
"react": "^18.2.0",
4443
"react-dom": "^18.2.0",
45-
"react-router-dom": "^6.20.0",
44+
"react-router-dom": "^6.20.1",
4645
"recoil": "^0.7.7",
4746
"styled-components": "^6.1.1",
48-
"typescript": "^5.3.2"
47+
"typescript": "^5.3.3"
4948
},
5049
"devDependencies": {
51-
"@babel/core": "^7.23.3",
50+
"@babel/core": "^7.23.5",
5251
"@testing-library/dom": "^9.3.3",
53-
"@testing-library/jest-dom": "^6.1.4",
52+
"@testing-library/jest-dom": "^6.1.5",
5453
"@testing-library/react": "^14.1.2",
5554
"@testing-library/user-event": "^14.5.1",
5655
"@types/lodash": "^4.14.202",
57-
"@types/react": "^18.2.38",
56+
"@types/react": "^18.2.42",
5857
"@types/react-dom": "^18.2.17",
5958
"@vitejs/plugin-react-swc": "^3.5.0",
6059
"autoprefixer": "^10.4.16",
61-
"eslint": "^8.54.0",
60+
"eslint": "^8.55.0",
6261
"eslint-config-airbnb": "^19.0.4",
63-
"eslint-config-prettier": "^9.0.0",
62+
"eslint-config-prettier": "^9.1.0",
6463
"eslint-plugin-import": "^2.29.0",
6564
"eslint-plugin-jsx-a11y": "^6.8.0",
6665
"eslint-plugin-prettier": "^5.0.1",
6766
"eslint-plugin-react": "^7.33.2",
6867
"eslint-plugin-react-hooks": "^4.6.0",
6968
"eslint-plugin-tailwindcss": "^3.13.0",
7069
"jsdom": "^22.1.0",
71-
"postcss": "^8.4.31",
70+
"postcss": "^8.4.32",
7271
"prettier": "^3.1.0",
73-
"tailwindcss": "^3.3.5",
74-
"vite": "^4.5.0",
72+
"tailwindcss": "^3.3.6",
73+
"vite": "^4.5.1",
7574
"vitest": "^0.34.6"
7675
}
7776
}

0 commit comments

Comments
 (0)