Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions hackernews-async-ts-di/.vscode/launch.json
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": "Egg Debug",
"type": "node",
"autoAttachChildProcesses": true,
"console": "integratedTerminal",
"env": {
"NODE_ENV": "local"
},
"port": 9229,
"preLaunchTask": "watch",
"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"
]
}
]
}
35 changes: 33 additions & 2 deletions hackernews-async-ts-di/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,40 @@
"when": "$(basename).ts"
},
"**/*.map": true,
"**/*.swp": true,
"**/.git": true,
"**/.DS_Store": true,
".vscode": true,
".git": true,
".build": true,
".githooks": true,
".sourcemaps": true,
"run": true,
"logs": true,
"out": true,
"node_modules": true
}
"node_modules": true,
"node_modules*": true,
"coverage": true,
"dist": true,
"platforms": true
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/node_modules/**": true,
"**/node_modules*/**": true,
"coverage/**": true,
"dist/**": true
},
"files.trimTrailingWhitespace": true,
"search.exclude": {
"**/node_modules": true,
".vscode/**": true,
".build/**": true,
"out/**": true,
"i18n/**": true
},
"[markdown]": {
"files.trimTrailingWhitespace": false
},
"typescript.format.enable": true
}
50 changes: 50 additions & 0 deletions hackernews-async-ts-di/.vscode/tasks.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"
}
]
}
34 changes: 34 additions & 0 deletions hackernews-async-ts/.vscode/launch.json
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": "Egg Debug",
"type": "node",
"autoAttachChildProcesses": true,
"console": "integratedTerminal",
"env": {
"NODE_ENV": "local"
},
"port": 9229,
"preLaunchTask": "watch",
"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"
]
}
]
}
43 changes: 42 additions & 1 deletion hackernews-async-ts/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
"files.exclude": {
"USE_GITIGNORE": true,
"**/*.js": {
"when": "$(basename).ts"
},
"**/*.map": true,
"**/*.swp": true,
"**/.git": true,
"**/.DS_Store": true,
".vscode": true,
".git": true,
".build": true,
".githooks": true,
".sourcemaps": true,
"run": true,
"logs": true,
"out": true,
"node_modules": true,
"node_modules*": true,
"coverage": true,
"dist": true,
"platforms": true
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/node_modules/**": true,
"**/node_modules*/**": true,
"coverage/**": true,
"dist/**": true
},
"files.trimTrailingWhitespace": true,
"search.exclude": {
"**/node_modules": true,
".vscode/**": true,
".build/**": true,
"out/**": true,
"i18n/**": true
},
"[markdown]": {
"files.trimTrailingWhitespace": false
},
"typescript.format.enable": true
}
50 changes: 50 additions & 0 deletions hackernews-async-ts/.vscode/tasks.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"
}
]
}