Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
qinezh committed Nov 7, 2023
1 parent 3a50c56 commit c9e42f3
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 19 deletions.
2 changes: 2 additions & 0 deletions test-tool-sample-app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ appsettings.json
_storage_emulator

# Local data
.localConfigs.testTool
.localConfigs
.notification.localstore.json
.notification.testtoolstore.json

# production
/build
Expand Down
4 changes: 4 additions & 0 deletions test-tool-sample-app/.localConfigs.testTool
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# A gitignored place holder file for local runtime configurations when debug in test tool
BOT_ID=
BOT_PASSWORD=
TEAMSFX_NOTIFICATION_STORE_FILENAME=.notification.testtoolstore.json
12 changes: 6 additions & 6 deletions test-tool-sample-app/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"presentation": {
"group": "2-remote",
"group": "3-remote",
"order": 1
},
"internalConsoleOptions": "neverOpen"
Expand All @@ -18,7 +18,7 @@
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"presentation": {
"group": "2-remote",
"group": "3-remote",
"order": 2
},
"internalConsoleOptions": "neverOpen"
Expand Down Expand Up @@ -73,7 +73,7 @@
],
"preLaunchTask": "Start Teams App Locally",
"presentation": {
"group": "1-local",
"group": "2-local",
"order": 1
},
"stopAll": true
Expand All @@ -86,7 +86,7 @@
],
"preLaunchTask": "Start Teams App Locally",
"presentation": {
"group": "1-local",
"group": "2-local",
"order": 2
},
"stopAll": true
Expand All @@ -98,8 +98,8 @@
],
"preLaunchTask": "Start Teams App (Test Tool)",
"presentation": {
"group": "0-testtool",
"order": 2
"group": "1-local",
"order": 1
},
"stopAll": true
},
Expand Down
4 changes: 2 additions & 2 deletions test-tool-sample-app/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependsOn": [
"Validate prerequisites (Test Tool)",
"Deploy (Test Tool)",
"Start application for Test Tool",
"Start application (Test Tool)",
"Start Test Tool",
],
"dependsOrder": "sequence"
Expand Down Expand Up @@ -43,7 +43,7 @@
}
},
{
"label": "Start application for Test Tool",
"label": "Start application (Test Tool)",
"type": "shell",
"command": "npm run dev:teamsfx:testtool",
"isBackground": true,
Expand Down
3 changes: 1 addition & 2 deletions test-tool-sample-app/env/.env.testtool
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
TEAMSFX_ENV=testtool
TEAMSAPPTESTER_PORT=56150
TEAMSFX_NOTIFICATION_STORE_FILENAME=".notification.testtool.json"
TEAMSAPPTESTER_PORT=56150
2 changes: 1 addition & 1 deletion test-tool-sample-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"dependencies": {
"@microsoft/adaptivecards-tools": "^1.0.0",
"@microsoft/teamsfx": "^2.2.0",
"@microsoft/teamsfx": "^2.3.1-beta",
"botbuilder": "^4.18.0",
"restify": "^10"
},
Expand Down
8 changes: 0 additions & 8 deletions test-tool-sample-app/teamsapp.testtool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,3 @@ deploy:
- uses: cli/runNpmCommand
with:
args: install --no-audit

# Generate runtime environment variables
- uses: file/createOrUpdateEnvironmentFile
with:
target: ./.localConfigs.testTool
envs:
TEAMSAPPTESTER_PORT: ${{TEAMSAPPTESTER_PORT}}
TEAMSFX_NOTIFICATION_STORE_FILENAME: ${{TEAMSFX_NOTIFICATION_STORE_FILENAME}}

0 comments on commit c9e42f3

Please sign in to comment.