From 6de027243514fdb757333934c8c7ec36fd6239ce Mon Sep 17 00:00:00 2001 From: xce Date: Tue, 23 Dec 2025 00:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .editorconfig | 22 ++++++++++++++++++++++ .env.development | 14 ++++++++++++++ .env.production | 11 +++++++++++ .env.staging | 12 ++++++++++++ .gitignore | 23 +++++++++++++++++++++++ 5 files changed, 82 insertions(+) create mode 100644 .editorconfig create mode 100644 .env.development create mode 100644 .env.production create mode 100644 .env.staging create mode 100644 .gitignore diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..7034f9b --- /dev/null +++ b/.editorconfig @@ -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 diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..f4c698c --- /dev/null +++ b/.env.development @@ -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 diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..4b4396c --- /dev/null +++ b/.env.production @@ -0,0 +1,11 @@ +# 页面标题 +VUE_APP_TITLE = 智能农业管理系统 + +# 生产环境配置 +ENV = 'production' + +# 基础路径 +VUE_APP_BASE_API = '/api' + +# 后端请求路径 +VUE_APP_URL = '/api' diff --git a/.env.staging b/.env.staging new file mode 100644 index 0000000..3785384 --- /dev/null +++ b/.env.staging @@ -0,0 +1,12 @@ +# 页面标题 +VUE_APP_TITLE = 智能农业管理系统 + +BABEL_ENV = production + +NODE_ENV = production + +# 测试环境配置 +ENV = 'staging' + +# 智能农业管理系统/测试环境 +VUE_APP_BASE_API = '/stage-api' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..78a752d --- /dev/null +++ b/.gitignore @@ -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