Skip to content

Commit

Permalink
fix(boilerplate): sync configurations for all boilerplate
Browse files Browse the repository at this point in the history
for vscode and tsc
  • Loading branch information
waitingsong committed Jul 23, 2019
1 parent 4a015e7 commit e73ae35
Show file tree
Hide file tree
Showing 8 changed files with 159 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Midway Debug",
"type": "node",
"autoAttachChildProcesses": true,
"console": "integratedTerminal",
"env": {
"NODE_ENV": "local"
},
"port": 9229,
"preLaunchTask": "TypeScript compile",
"protocol": "auto",
"request": "launch",
"restart": true,
"runtimeArgs": [
"run",
"debug",
"--",
"--inspect-brk"
],
"runtimeExecutable": "npm",
"skipFiles": [
// "${workspaceFolder}/node_modules/**/*.js",
"${workspaceFolder}/node_modules/rxjs/**/*.js",
"<node_internals>/**/*.js"
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"files.eol": "\n",
"files.exclude": {
"**/*.js": {
"when": "$(basename).ts"
},
"*.map": true,
"*.swp": true,
".build": true,
".dockerignore": true,
".DS_Store": true,
".eslint*": true,
".editorconfig": true,
".git": true,
".gitignore": true,
".githooks": true,
".npmignore": true,
".nyc_output": true,
".sourcemaps": true,
".travis.yml": true,
".vscode": true,
"appveyor.yml": true,
"build": true,
"commitlint.config.js": true,
"coverage": true,
"dist": true,
"logs": true,
"node_modules*": true,
"out": true,
"package-lock.json": true,
"rollup.*": true,
"run": true,
"temp": true,
"tmp": true
},
"files.insertFinalNewline": true,
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/node_modules*/**": true,
"**/temp/**": true,
"**/tmp/**": true,
"**/.tsbuildinfo": true,
"**/.tsbuildinfo.**": true,
"coverage/**": true,
"dist/**": true,
"logs/**": true,
"run/**": true
},
"files.trimTrailingWhitespace": true,
"search.exclude": {
"node_modules*": true,
"bower_components*": true,
"*.anim": true,
"i18n/**": true,
"library/": true,
"platforms/": true,
"www/": true
},
"search.useIgnoreFiles": true
"[markdown]": {
"files.trimTrailingWhitespace": false
},
"tslint.configFile": "./tslint.json"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
// 有关 tasks.json 格式的文档,请参见
// https://go.microsoft.com/fwlink/?LinkId=733558
"version": "2.0.0",
"tasks": [
{
"label": "TypeScript compile",
"command": "tsc",
"args": [
"-p",
"."
],
"problemMatcher": [
"$tsc"
],
"type": "shell"
},
{
"label": "watch",
"command": "tsc",
"args": [
"-w",
"-p",
"."
],
"isBackground": true,
"problemMatcher": [
"$tsc-watch"
],
"type": "shell"
},
{
// Ctrl+Shift+B
"type": "npm",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "silent"
},
"problemMatcher": [
"$eslint-stylish",
"$tsc",
"$tslint5"
],
"script": "build"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
{
"compileOnSave": true,
"compilerOptions": {
"alwaysStrict": true,
"charset": "utf8",
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"inlineSourceMap": true,
"module": "commonjs",
"newLine": "lf",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"outDir": "dist",
"pretty": true,
Expand All @@ -25,7 +21,7 @@
"app/public",
"app/views",
"dist",
"node_modules",
"node_modules*",
"test",
"**/*.d.ts",
"**/*.spec.ts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@
"files.insertFinalNewline": true,
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/node_modules*/**": true,
"**/temp/**": true,
"**/tmp/**": true,
"**/.tsbuildinfo": true,
"**/.tsbuildinfo.**": true,
"coverage/**": true,
"dist/**": true,
"logs/**": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"compileOnSave": true,
"compilerOptions": {
"alwaysStrict": true,
"charset": "utf8",
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
Expand All @@ -11,8 +9,6 @@
"module": "commonjs",
"newLine": "lf",
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"outDir": "dist",
"pretty": true,
Expand All @@ -27,7 +23,7 @@
"app/public",
"app/views",
"dist",
"node_modules",
"node_modules*",
"test",
"**/*.d.ts",
"**/*.spec.ts"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,13 @@
"files.insertFinalNewline": true,
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/node_modules*/**": true,
"**/temp/**": true,
"**/tmp/**": true,
"**/.tsbuildinfo": true,
"**/.tsbuildinfo.**": true,
"coverage/**": true,
"dist/**": true,
"logs/**": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"app/public",
"app/views",
"dist",
"node_modules",
"node_modules*",
"test",
"**/*.d.ts",
"**/*.spec.ts"
Expand Down

0 comments on commit e73ae35

Please sign in to comment.