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