Skip to content

Commit

Permalink
chore(localdebug): use latest launch and task (#274)
Browse files Browse the repository at this point in the history
* chore(localdebug): use latest launch and task

- remove launch configuration preLaunchTask: Start Frontend/Backend/Bot
- move Start Frontend/Backend/Bot to compound preLaunchTask
- update the endsPattern of bot problem matcher and show the bot problem
matcher details in tasks.json
- rename launch configurations
  • Loading branch information
kuojianlu committed Feb 16, 2022
1 parent 0730be5 commit ebe6236
Show file tree
Hide file tree
Showing 20 changed files with 259 additions and 135 deletions.
15 changes: 7 additions & 8 deletions NPM-search-connector-M365/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}",
"cascadeTerminateToConfigurations": [
"Start and Attach to Bot"
"Attach to Bot"
],
"presentation": {
"group": "all",
Expand All @@ -40,20 +40,19 @@
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}",
"cascadeTerminateToConfigurations": [
"Start and Attach to Bot"
"Attach to Bot"
],
"presentation": {
"group": "all",
"hidden": true
}
},
{
"name": "Start and Attach to Bot",
"name": "Attach to Bot",
"type": "pwa-node",
"request": "attach",
"port": 9239,
"restart": true,
"preLaunchTask": "Start Bot",
"presentation": {
"group": "all",
"hidden": true
Expand All @@ -65,9 +64,9 @@
"name": "Debug (Edge)",
"configurations": [
"Launch Bot (Edge)",
"Start and Attach to Bot"
"Attach to Bot"
],
"preLaunchTask": "Pre Debug Check",
"preLaunchTask": "Pre Debug Check & Start All",
"presentation": {
"group": "all",
"order": 1
Expand All @@ -78,9 +77,9 @@
"name": "Debug (Chrome)",
"configurations": [
"Launch Bot (Chrome)",
"Start and Attach to Bot"
"Attach to Bot"
],
"preLaunchTask": "Pre Debug Check",
"preLaunchTask": "Pre Debug Check & Start All",
"presentation": {
"group": "all",
"order": 2
Expand Down
27 changes: 24 additions & 3 deletions NPM-search-connector-M365/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"version": "2.0.0",
"tasks": [
{
"label": "Pre Debug Check",
"label": "Pre Debug Check & Start All",
"dependsOn": [
"validate local prerequisites",
"start ngrok",
"prepare local environment"
"prepare local environment",
"Start All"
],
"dependsOrder": "sequence"
},
Expand All @@ -30,12 +31,32 @@
"reveal": "never"
}
},
{
"label": "Start All",
"dependsOn": [
"Start Bot"
]
},
{
"label": "Start Bot",
"type": "shell",
"command": "npm run dev:teamsfx",
"isBackground": true,
"problemMatcher": "$teamsfx-bot-watch",
"problemMatcher": {
"pattern": [
{
"regexp": "^.*$",
"file": 0,
"location": 1,
"message": 2
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "[nodemon] starting",
"endsPattern": "restify listening to|Bot/ME service listening at|[nodemon] app crashed"
}
},
"options": {
"cwd": "${workspaceFolder}/bot"
}
Expand Down
15 changes: 7 additions & 8 deletions bot-sso/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}",
"cascadeTerminateToConfigurations": [
"Start and Attach to Bot"
"Attach to Bot"
],
"presentation": {
"group": "all",
Expand All @@ -40,20 +40,19 @@
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}",
"cascadeTerminateToConfigurations": [
"Start and Attach to Bot"
"Attach to Bot"
],
"presentation": {
"group": "all",
"hidden": true
}
},
{
"name": "Start and Attach to Bot",
"name": "Attach to Bot",
"type": "pwa-node",
"request": "attach",
"port": 9239,
"restart": true,
"preLaunchTask": "Start Bot",
"presentation": {
"group": "all",
"hidden": true
Expand All @@ -65,9 +64,9 @@
"name": "Debug (Edge)",
"configurations": [
"Launch Bot (Edge)",
"Start and Attach to Bot"
"Attach to Bot"
],
"preLaunchTask": "Pre Debug Check",
"preLaunchTask": "Pre Debug Check & Start All",
"presentation": {
"group": "all",
"order": 1
Expand All @@ -78,9 +77,9 @@
"name": "Debug (Chrome)",
"configurations": [
"Launch Bot (Chrome)",
"Start and Attach to Bot"
"Attach to Bot"
],
"preLaunchTask": "Pre Debug Check",
"preLaunchTask": "Pre Debug Check & Start All",
"presentation": {
"group": "all",
"order": 2
Expand Down
27 changes: 24 additions & 3 deletions bot-sso/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"version": "2.0.0",
"tasks": [
{
"label": "Pre Debug Check",
"label": "Pre Debug Check & Start All",
"dependsOn": [
"validate local prerequisites",
"start ngrok",
"prepare local environment"
"prepare local environment",
"Start All"
],
"dependsOrder": "sequence"
},
Expand All @@ -30,12 +31,32 @@
"reveal": "never"
}
},
{
"label": "Start All",
"dependsOn": [
"Start Bot"
]
},
{
"label": "Start Bot",
"type": "shell",
"command": "npm run dev:teamsfx",
"isBackground": true,
"problemMatcher": "$teamsfx-bot-watch",
"problemMatcher": {
"pattern": [
{
"regexp": "^.*$",
"file": 0,
"location": 1,
"message": 2
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "[nodemon] starting",
"endsPattern": "restify listening to|Bot/ME service listening at|[nodemon] app crashed"
}
},
"options": {
"cwd": "${workspaceFolder}/bot"
}
Expand Down
15 changes: 7 additions & 8 deletions faq-plus/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}",
"cascadeTerminateToConfigurations": [
"Start and Attach to Bot"
"Attach to Bot"
],
"presentation": {
"group": "all",
Expand All @@ -40,20 +40,19 @@
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}",
"cascadeTerminateToConfigurations": [
"Start and Attach to Bot"
"Attach to Bot"
],
"presentation": {
"group": "all",
"hidden": true
}
},
{
"name": "Start and Attach to Bot",
"name": "Attach to Bot",
"type": "pwa-node",
"request": "attach",
"port": 9239,
"restart": true,
"preLaunchTask": "Start Bot",
"presentation": {
"group": "all",
"hidden": true
Expand All @@ -65,9 +64,9 @@
"name": "Debug (Edge)",
"configurations": [
"Launch Bot (Edge)",
"Start and Attach to Bot"
"Attach to Bot"
],
"preLaunchTask": "Pre Debug Check",
"preLaunchTask": "Pre Debug Check & Start All",
"presentation": {
"group": "all",
"order": 1
Expand All @@ -78,9 +77,9 @@
"name": "Debug (Chrome)",
"configurations": [
"Launch Bot (Chrome)",
"Start and Attach to Bot"
"Attach to Bot"
],
"preLaunchTask": "Pre Debug Check",
"preLaunchTask": "Pre Debug Check & Start All",
"presentation": {
"group": "all",
"order": 2
Expand Down
27 changes: 24 additions & 3 deletions faq-plus/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"version": "2.0.0",
"tasks": [
{
"label": "Pre Debug Check",
"label": "Pre Debug Check & Start All",
"dependsOn": [
"validate local prerequisites",
"start ngrok",
"prepare local environment"
"prepare local environment",
"Start All"
],
"dependsOrder": "sequence"
},
Expand All @@ -30,12 +31,32 @@
"reveal": "never"
}
},
{
"label": "Start All",
"dependsOn": [
"Start Bot"
]
},
{
"label": "Start Bot",
"type": "shell",
"command": "npm run dev:teamsfx",
"isBackground": true,
"problemMatcher": "$teamsfx-bot-watch",
"problemMatcher": {
"pattern": [
{
"regexp": "^.*$",
"file": 0,
"location": 1,
"message": 2
}
],
"background": {
"activeOnStart": true,
"beginsPattern": "[nodemon] starting",
"endsPattern": "restify listening to|Bot/ME service listening at|[nodemon] app crashed"
}
},
"options": {
"cwd": "${workspaceFolder}/bot"
}
Expand Down
14 changes: 6 additions & 8 deletions graph-toolkit-contact-exporter/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,20 @@
}
},
{
"name": "Start and Attach to Frontend (Edge)",
"name": "Attach to Frontend (Edge)",
"type": "pwa-msedge",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}",
"preLaunchTask": "Start Frontend",
"presentation": {
"group": "all",
"hidden": true
}
},
{
"name": "Start and Attach to Frontend (Chrome)",
"name": "Attach to Frontend (Chrome)",
"type": "pwa-chrome",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${localTeamsAppId}?installAppPackage=true&webjoin=true&${account-hint}",
"preLaunchTask": "Start Frontend",
"presentation": {
"group": "all",
"hidden": true
Expand All @@ -48,9 +46,9 @@
{
"name": "Debug (Edge)",
"configurations": [
"Start and Attach to Frontend (Edge)"
"Attach to Frontend (Edge)"
],
"preLaunchTask": "Pre Debug Check",
"preLaunchTask": "Pre Debug Check & Start All",
"presentation": {
"group": "all",
"order": 1
Expand All @@ -60,9 +58,9 @@
{
"name": "Debug (Chrome)",
"configurations": [
"Start and Attach to Frontend (Chrome)"
"Attach to Frontend (Chrome)"
],
"preLaunchTask": "Pre Debug Check",
"preLaunchTask": "Pre Debug Check & Start All",
"presentation": {
"group": "all",
"order": 2
Expand Down
11 changes: 9 additions & 2 deletions graph-toolkit-contact-exporter/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
"version": "2.0.0",
"tasks": [
{
"label": "Pre Debug Check",
"label": "Pre Debug Check & Start All",
"dependsOn": [
"validate local prerequisites",
"prepare local environment"
"prepare local environment",
"Start All"
],
"dependsOrder": "sequence"
},
Expand All @@ -25,6 +26,12 @@
"reveal": "never"
}
},
{
"label": "Start All",
"dependsOn": [
"Start Frontend"
]
},
{
"label": "Start Frontend",
"type": "shell",
Expand Down
Loading

0 comments on commit ebe6236

Please sign in to comment.