Skip to content

Commit

Permalink
Merge pull request #1321 from OfficeDev/nintan/template
Browse files Browse the repository at this point in the history
feat: add templates used for github copilot extension
  • Loading branch information
tecton authored Sep 4, 2024
2 parents 0c656a4 + 3e6ef37 commit 4f0a734
Show file tree
Hide file tree
Showing 469 changed files with 21,998 additions and 1 deletion.
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

0 comments on commit 4f0a734

Please sign in to comment.