环境配置

master
xce 2025-12-23 00:50:51 +08:00
parent 4fa42500f3
commit 6de0272435
5 changed files with 82 additions and 0 deletions

22
.editorconfig Normal file
View File

@ -0,0 +1,22 @@
# 告诉EditorConfig插件这是根文件不用继续往上查找
root = true
# 匹配全部文件
[*]
# 设置字符集
charset = utf-8
# 缩进风格可选space、tab
indent_style = space
# 缩进的空格数
indent_size = 2
# 结尾换行符可选lf、cr、crlf
end_of_line = lf
# 在文件结尾插入新行
insert_final_newline = true
# 删除一行中的前后空格
trim_trailing_whitespace = true
# 匹配md结尾的文件
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false

14
.env.development Normal file
View File

@ -0,0 +1,14 @@
# 页面标题
VUE_APP_TITLE = 智能农业管理系统
# 开发环境配置
ENV = 'development'
# 智能农业管理系统/开发环境
VUE_APP_BASE_API = '/dev-api'
#后端路径
VUE_APP_URL = 'http://localhost:8088'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true

11
.env.production Normal file
View File

@ -0,0 +1,11 @@
# 页面标题
VUE_APP_TITLE = 智能农业管理系统
# 生产环境配置
ENV = 'production'
# 基础路径
VUE_APP_BASE_API = '/api'
# 后端请求路径
VUE_APP_URL = '/api'

12
.env.staging Normal file
View File

@ -0,0 +1,12 @@
# 页面标题
VUE_APP_TITLE = 智能农业管理系统
BABEL_ENV = production
NODE_ENV = production
# 测试环境配置
ENV = 'staging'
# 智能农业管理系统/测试环境
VUE_APP_BASE_API = '/stage-api'

23
.gitignore vendored Normal file
View File

@ -0,0 +1,23 @@
.DS_Store
node_modules/
dist/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
**/*.log
tests/**/coverage/
tests/e2e/reports
selenium-debug.log
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.local
package-lock.json
yarn.lock