Skip to content

Commit

Permalink
📝 增加模板文件
Browse files Browse the repository at this point in the history
  • Loading branch information
kongnet committed Aug 15, 2019
1 parent c05f448 commit e1a0620
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# Use 4 spaces for the Python files
[*.py]
indent_size = 4

# The JSON files contain newlines inconsistently
[*.json]
insert_final_newline = ignore
18 changes: 18 additions & 0 deletions output-template/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# Use 4 spaces for the Python files
[*.py]
indent_size = 4

# The JSON files contain newlines inconsistently
[*.json]
insert_final_newline = ignore
12 changes: 11 additions & 1 deletion output-template/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ node_modules
coverage
jtFrontCheck.html
jtFrontEasyCheck.html
out
test
tests
node_modules
coverage
jtFrontCheck.html
.DS_Store
node_modules/
dist/
npm-debug.log*
yarn-debug.log*
Expand All @@ -20,9 +27,12 @@ test??.js
*.ntvs*
*.njsproj
*.sln
config.local.js

.vscode/
.logs
.nyc_output
coverage
mochawesome-report
# 开发环境的配置就不用上传了
config/config.local.js
Expand All @@ -36,4 +46,4 @@ www/markdown/apis
www/markdown/_sidebar.md
www/markdown/history.md
www/img/*
.scannerwork
.scannerwork
5 changes: 5 additions & 0 deletions output-template/.istanbul.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
instrumentation:
root: . # 执行的根目录
extensions:
- .js # 检查覆盖率的文件扩张名
excludes: ['**/node_modules/**','**/lib/reg/**']
8 changes: 8 additions & 0 deletions output-template/sonar-project.properties.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
sonar.projectKey={{d.proName}}_key
sonar.projectName={{d.proName}}
sonar.projectVersion={{d.proVersion}}
sonar.sources=.
sonar.language=javascript
sonar.sourceEncoding=UTF-8
sonar.exclusions=lib/reg/**/*,lib/tpl.js
sonar.javascript.lcov.reportPaths=coverage/lcov.info

0 comments on commit e1a0620

Please sign in to comment.