Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add templates used for github copilot extension #1321

Merged
merged 2 commits into from
Sep 4, 2024
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/workflows/ci-sample-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
run: |
# This script runs the validation tool against changed samples in the pull request.
# External samples are excluded from the validation.
exceptions=(".config" ".devcontainer" "assets" "validation-tool" "basic-blazor-tab-app" "incoming-webhook-notification" "stocks-update-notification-bot-dotnet" "whos-next-meeting-app")
exceptions=(".config" ".devcontainer" "assets" "templates" "validation-tool" "basic-blazor-tab-app" "incoming-webhook-notification" "stocks-update-notification-bot-dotnet" "whos-next-meeting-app")
samples=`jq -r ".[]" <<< '${{ steps.get_changed_folders.outputs.changed }}'`
validationFailed="validation failed"
validationResult=true
Expand Down
28 changes: 28 additions & 0 deletions templates/command-and-response-js/.appserviceIgnore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.appserviceIgnore
.fx
.deployment
.localConfigs.testTool
.localConfigs
.notification.localstore.json
.notification.testtoolstore.json
.vscode
*.js.map
*.ts.map
*.ts
.git*
.tsbuildinfo
CHANGELOG.md
readme.md
local.settings.json
test
tsconfig.json
.DS_Store
teamsapp.yml
teamsapp.*.yml
/env/
/node_modules/.bin
/node_modules/ts-node
/node_modules/typescript
/appPackage/
/infra/
/devTools/
26 changes: 26 additions & 0 deletions templates/command-and-response-js/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# TeamsFx files
env/.env.*.user
env/.env.local
.DS_Store
build
appPackage/build

# dependencies
node_modules/

# misc
.env
.deployment
.DS_Store

# build
lib/

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

# Dev tool directories
/devTools/
5 changes: 5 additions & 0 deletions templates/command-and-response-js/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"TeamsDevApp.ms-teams-vscode-extension"
]
}
132 changes: 132 additions & 0 deletions templates/command-and-response-js/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Remote (Edge)",
"type": "msedge",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"presentation": {
"group": "3-remote",
"order": 1
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch Remote (Chrome)",
"type": "chrome",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"presentation": {
"group": "3-remote",
"order": 2
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch App (Edge)",
"type": "msedge",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{local:TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"cascadeTerminateToConfigurations": [
"Attach to Local Service"
],
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen",
"perScriptSourcemaps": "yes"
},
{
"name": "Launch App (Chrome)",
"type": "chrome",
"request": "launch",
"url": "https://teams.microsoft.com/l/app/${{local:TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
"cascadeTerminateToConfigurations": [
"Attach to Local Service"
],
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen",
"perScriptSourcemaps": "yes"
},
{
"name": "Attach to Local Service",
"type": "node",
"request": "attach",
"port": 9239,
"restart": true,
"presentation": {
"group": "all",
"hidden": true
},
"internalConsoleOptions": "neverOpen"
},
{
"name": "Launch Remote (Desktop)",
"type": "node",
"request": "launch",
"preLaunchTask": "Start Teams App in Desktop Client (Remote)",
"presentation": {
"group": "3-remote",
"order": 3
},
"internalConsoleOptions": "neverOpen",
}
],
"compounds": [
{
"name": "Debug in Teams (Edge)",
"configurations": [
"Launch App (Edge)",
"Attach to Local Service"
],
"preLaunchTask": "Start Teams App Locally",
"presentation": {
"group": "2-local",
"order": 1
},
"stopAll": true
},
{
"name": "Debug in Teams (Chrome)",
"configurations": [
"Launch App (Chrome)",
"Attach to Local Service"
],
"preLaunchTask": "Start Teams App Locally",
"presentation": {
"group": "2-local",
"order": 2
},
"stopAll": true
},
{
"name": "Debug in Teams (Desktop)",
"configurations": [
"Attach to Local Service"
],
"preLaunchTask": "Start Teams App in Desktop Client",
"presentation": {
"group": "2-local",
"order": 3
},
"stopAll": true
},
{
"name": "Debug in Test Tool",
"configurations": [
"Attach to Local Service"
],
"preLaunchTask": "Start Teams App (Test Tool)",
"presentation": {
"group": "1-local",
"order": 1
},
"stopAll": true
}
]
}
11 changes: 11 additions & 0 deletions templates/command-and-response-js/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"debug.onTaskErrors": "abort",
"json.schemas": [
{
"fileMatch": [
"/aad.*.json"
],
"schema": {}
}
]
}
Loading
Loading