diff --git a/.env.development b/.env.development index c4e44761..548fc857 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,3 @@ -## 开发环境 -NODE_ENV='development' - # 应用端口 VITE_APP_PORT = 3000 diff --git a/.env.production b/.env.production index a2d828cb..74d45c16 100644 --- a/.env.production +++ b/.env.production @@ -1,6 +1,3 @@ -## 生产环境 -NODE_ENV='production' - # 代理前缀 VITE_APP_BASE_API = '/prod-api' diff --git a/README.en-US.md b/README.en-US.md index de19a3f2..831f00a7 100644 --- a/README.en-US.md +++ b/README.en-US.md @@ -1,7 +1,7 @@
- - - + + + @@ -37,7 +37,7 @@ - **Essential Infrastructure**: Dynamic routing, button permissions, internationalization, code style, Git commit conventions, and common component encapsulation. -- **Continuous Updates**: Continuously updated for 3 years since 2021, keeping up with the latest technologies and tools. +- **Continuous Updates**: Since 2021, the project has maintained an open-source status with continuous updates, integrating new tools and dependencies in real time, and has accumulated a broad user base. ## Project Preview @@ -85,7 +85,7 @@ pnpm run dev ```bash # Build the project -pnpm run build:prod +pnpm run build # Upload files to the remote server Copy the files generated in the `dist` directory to the `/usr/share/nginx/html` directory. diff --git a/README.md b/README.md index 84f4d5cf..1b1ea894 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@
- + @@ -30,7 +30,7 @@ - **基础设施**:动态路由、按钮权限、国际化、代码规范、Git 提交规范、常用组件封装。 -- **持续更新**:2021年至今持续更新3年,及时跟进最新的技术和工具。 +- **持续更新**:自2021年起,该项目持续开源更新,实时更新工具和依赖,积累了广泛的用户群体。 @@ -82,7 +82,7 @@ pnpm run dev ```bash # 项目打包 -pnpm run build:prod +pnpm run build # 上传文件至远程服务器 将打包生成在 `dist` 目录下的文件拷贝至 `/usr/share/nginx/html` 目录 diff --git a/package.json b/package.json index 0476e415..3d878119 100644 --- a/package.json +++ b/package.json @@ -4,14 +4,17 @@ "private": true, "type": "module", "scripts": { - "preinstall": "npx only-allow pnpm", - "dev": "vite serve --mode development", - "build:prod": "vite build --mode production && vue-tsc --noEmit", - "prepare": "husky", + "dev": "vite", + "build": "vue-tsc --noEmit & vite build", + "preview": "vite preview", + "build-only": "vite build", + "type-check": "vue-tsc --noEmit", "lint:eslint": "eslint --fix --ext .ts,.js,.vue ./src ", "lint:prettier": "prettier --write \"**/*.{js,cjs,ts,json,tsx,css,less,scss,vue,html,md}\"", "lint:stylelint": "stylelint \"**/*.{css,scss,vue}\" --fix", "lint:lint-staged": "lint-staged", + "preinstall": "npx only-allow pnpm", + "prepare": "husky", "commit": "git-cz" }, "config": { diff --git a/src/components/PageContent/index.vue b/src/components/PageContent/index.vue index a0b0a961..c5642dd5 100644 --- a/src/components/PageContent/index.vue +++ b/src/components/PageContent/index.vue @@ -1,76 +1,107 @@