-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(boilerplate): sync configurations for all boilerplate
for vscode and tsc
- Loading branch information
1 parent
4a015e7
commit e73ae35
Showing
8 changed files
with
159 additions
and
11 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
packages/midway-init/boilerplate/midway-demo-boilerplate/boilerplate/.vscode/launch.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} | ||
] | ||
} |
66 changes: 66 additions & 0 deletions
66
packages/midway-init/boilerplate/midway-demo-boilerplate/boilerplate/.vscode/settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
50 changes: 50 additions & 0 deletions
50
packages/midway-init/boilerplate/midway-demo-boilerplate/boilerplate/.vscode/tasks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters