update to standard .gitignore
This commit is contained in:
105
.gitignore
vendored
105
.gitignore
vendored
@@ -1,63 +1,88 @@
|
||||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||
|
||||
node_modules/
|
||||
/test/unit/coverage/
|
||||
/test/e2e/reports/
|
||||
### 目录 #################################################################
|
||||
|
||||
# 通用
|
||||
.svn/
|
||||
.deploy_git/
|
||||
.idea/
|
||||
.sass-cache/
|
||||
.deploy_git/
|
||||
/test/unit/coverage/
|
||||
/test/e2e/reports/
|
||||
node_modules/
|
||||
*.apk
|
||||
*.min.js
|
||||
*.min.css
|
||||
*.min.html
|
||||
*.iml
|
||||
*.njsproj
|
||||
*.ntvs*
|
||||
*.sw*
|
||||
*.sln
|
||||
*.suo
|
||||
.gitattributes
|
||||
_desktop.ini
|
||||
.DS_Store
|
||||
.thumbnails
|
||||
Thumbs.db
|
||||
thumbs.db
|
||||
.umi
|
||||
.umi-production
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
yarn.lock
|
||||
selenium-debug.log
|
||||
package-lock.json
|
||||
*.iml
|
||||
*.njsproj
|
||||
*.ntvs*
|
||||
*.sln
|
||||
*.suo
|
||||
._*
|
||||
.$*
|
||||
~$*
|
||||
Thumbs.db
|
||||
thumbs.db
|
||||
_desktop.ini
|
||||
|
||||
.bashrc_custom
|
||||
# vue-cli 项目
|
||||
/dist/
|
||||
|
||||
# 来自 vue-cli 创建项目的 .gitignore
|
||||
.project
|
||||
|
||||
# hexo
|
||||
db.json
|
||||
/public/
|
||||
|
||||
# 客户端 uniapp 项目
|
||||
/unpackage/*
|
||||
!/unpackage/res/
|
||||
# Hardhat
|
||||
/artifacts/
|
||||
/cache/
|
||||
|
||||
# seafile 临时文件
|
||||
._*
|
||||
|
||||
.$*
|
||||
|
||||
# office 暂存文件
|
||||
~$*
|
||||
|
||||
# 用户shell配置脚本
|
||||
.bashrc_custom
|
||||
|
||||
# 苹果系统临时文件
|
||||
.DS_Store
|
||||
|
||||
# 安卓缓存文件夹
|
||||
.thumbnails
|
||||
|
||||
# local env files
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
||||
# hexo
|
||||
/db.json
|
||||
|
||||
# wo
|
||||
envar-*.gitignore.js
|
||||
# 服务端
|
||||
/_archive/*
|
||||
/_datastore/*
|
||||
/_logstore/*
|
||||
/_filestore/*
|
||||
/_logstore/*
|
||||
/_webroot/*
|
||||
/dist/
|
||||
*.apk
|
||||
*.min.js
|
||||
*.min.css
|
||||
*.min.html
|
||||
/pages4loader.json5
|
||||
envar-web-custom.js
|
||||
envar-deploy-secret.js
|
||||
|
||||
# hexo 项目
|
||||
public/
|
||||
|
||||
# 服务端(server or uniapp-uniCloud)项目
|
||||
envar-base-custom.js
|
||||
envar-base-dynamic.js
|
||||
envar-base-secret.js
|
||||
/_ssl/*
|
||||
# uniapp 客户端
|
||||
/unpackage/*
|
||||
!/unpackage/res/
|
||||
package-lock.json
|
||||
pages4loader.json5
|
||||
|
||||
# 保留
|
||||
!.gitkeep
|
||||
|
||||
14
server.js
14
server.js
@@ -13,15 +13,15 @@ function config () {
|
||||
Config = require('./envar-base-basic.js')
|
||||
console.info('envar-base-basic.js loaded')
|
||||
}
|
||||
if (fs.existsSync('./envar-base-custom.js')) {
|
||||
if (fs.existsSync('./envar-base-basic.gitignore.js')) {
|
||||
// 如果存在,覆盖掉 envar-base-basic.js 里的默认参数
|
||||
Config = deepmerge(Config, require('./envar-base-custom.js')) // 注意,objectMerge后,产生了一个新的对象,而不是在原来的Config里添加
|
||||
console.info('envar-base-custom.js loaded')
|
||||
Config = deepmerge(Config, require('./envar-base-basic.gitignore.js')) // 注意,objectMerge后,产生了一个新的对象,而不是在原来的Config里添加
|
||||
console.info('envar-base-basic.gitignore.js loaded')
|
||||
}
|
||||
if (fs.existsSync('./envar-base-secret.js')) {
|
||||
// 如果存在,覆盖掉 envar-base-basic.js 和 envar-base-custom.js 里的参数
|
||||
Config = deepmerge(Config, require('./envar-base-secret.js'))
|
||||
console.info('envar-base-secret.js loaded')
|
||||
if (fs.existsSync('./envar-base-secret.gitignore.js')) {
|
||||
// 如果存在,覆盖掉 envar-base-basic.js 和 envar-base-basic.gitignore.js 里的参数
|
||||
Config = deepmerge(Config, require('./envar-base-secret.gitignore.js'))
|
||||
console.info('envar-base-secret.gitignore.js loaded')
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('Loading config files failed: ' + err.message)
|
||||
|
||||
Reference in New Issue
Block a user