Skip to content

Commit a76cf13

Browse files
committed
Initial commit
0 parents  commit a76cf13

24 files changed

+2608
-0
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# TeamsFx files
2+
env/.env.*.user
3+
env/.env.local
4+
.DS_Store
5+
.localConfigs
6+
build
7+
appPackage/build
8+
9+
# dependencies
10+
/node_modules
11+
12+
# testing
13+
/coverage
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
.env
21+
.deployment

.vscode/launch.json

+247
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,247 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Launch Remote in Teams (Edge)",
6+
"type": "msedge",
7+
"request": "launch",
8+
"url": "https://teams.microsoft.com/l/app/${{TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
9+
"presentation": {
10+
"group": "group 1: Teams",
11+
"order": 3
12+
},
13+
"internalConsoleOptions": "neverOpen"
14+
},
15+
{
16+
"name": "Launch Remote in Teams (Chrome)",
17+
"type": "chrome",
18+
"request": "launch",
19+
"url": "https://teams.microsoft.com/l/app/${{TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
20+
"presentation": {
21+
"group": "group 1: Teams",
22+
"order": 3
23+
},
24+
"internalConsoleOptions": "neverOpen"
25+
},
26+
{
27+
"name": "Launch Remote in Outlook (Edge)",
28+
"type": "msedge",
29+
"request": "launch",
30+
"url": "https://outlook.office.com/host/${{M365_APP_ID}}?${account-hint}",
31+
"presentation": {
32+
"group": "group 2: Outlook",
33+
"order": 3
34+
},
35+
"internalConsoleOptions": "neverOpen"
36+
},
37+
{
38+
"name": "Launch Remote in Outlook (Chrome)",
39+
"type": "chrome",
40+
"request": "launch",
41+
"url": "https://outlook.office.com/host/${{M365_APP_ID}}?${account-hint}",
42+
"presentation": {
43+
"group": "group 2: Outlook",
44+
"order": 3
45+
},
46+
"internalConsoleOptions": "neverOpen"
47+
},
48+
{
49+
"name": "Launch Remote in the Microsoft 365 app (Edge)",
50+
"type": "msedge",
51+
"request": "launch",
52+
"url": "https://www.office.com/m365apps/${{M365_APP_ID}}?auth=2&${account-hint}",
53+
"presentation": {
54+
"group": "group 3: the Microsoft 365 app",
55+
"order": 3
56+
},
57+
"internalConsoleOptions": "neverOpen"
58+
},
59+
{
60+
"name": "Launch Remote in the Microsoft 365 app (Chrome)",
61+
"type": "chrome",
62+
"request": "launch",
63+
"url": "https://www.office.com/m365apps/${{M365_APP_ID}}?auth=2&${account-hint}",
64+
"presentation": {
65+
"group": "group 3: the Microsoft 365 app",
66+
"order": 3
67+
},
68+
"internalConsoleOptions": "neverOpen"
69+
},
70+
{
71+
"name": "Attach to Frontend in Teams (Edge)",
72+
"type": "msedge",
73+
"request": "launch",
74+
"url": "https://teams.microsoft.com/l/app/${{local:TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
75+
"cascadeTerminateToConfigurations": [
76+
"Attach to Local Service"
77+
],
78+
"presentation": {
79+
"group": "all",
80+
"hidden": true
81+
},
82+
"internalConsoleOptions": "neverOpen"
83+
},
84+
{
85+
"name": "Attach to Frontend in Teams (Chrome)",
86+
"type": "chrome",
87+
"request": "launch",
88+
"url": "https://teams.microsoft.com/l/app/${{local:TEAMS_APP_ID}}?installAppPackage=true&webjoin=true&${account-hint}",
89+
"cascadeTerminateToConfigurations": [
90+
"Attach to Local Service"
91+
],
92+
"presentation": {
93+
"group": "all",
94+
"hidden": true
95+
},
96+
"internalConsoleOptions": "neverOpen"
97+
},
98+
{
99+
"name": "Attach to Frontend in Outlook (Edge)",
100+
"type": "msedge",
101+
"request": "launch",
102+
"url": "https://outlook.office.com/host/${{local:M365_APP_ID}}?${account-hint}",
103+
"cascadeTerminateToConfigurations": [
104+
"Attach to Local Service"
105+
],
106+
"presentation": {
107+
"group": "all",
108+
"hidden": true
109+
},
110+
"internalConsoleOptions": "neverOpen"
111+
},
112+
{
113+
"name": "Attach to Frontend in Outlook (Chrome)",
114+
"type": "chrome",
115+
"request": "launch",
116+
"url": "https://outlook.office.com/host/${{local:M365_APP_ID}}?${account-hint}",
117+
"cascadeTerminateToConfigurations": [
118+
"Attach to Local Service"
119+
],
120+
"presentation": {
121+
"group": "all",
122+
"hidden": true
123+
},
124+
"internalConsoleOptions": "neverOpen"
125+
},
126+
{
127+
"name": "Attach to Frontend in the Microsoft 365 app (Edge)",
128+
"type": "msedge",
129+
"request": "launch",
130+
"url": "https://www.office.com/m365apps/${{local:M365_APP_ID}}?auth=2&${account-hint}",
131+
"cascadeTerminateToConfigurations": [
132+
"Attach to Local Service"
133+
],
134+
"presentation": {
135+
"group": "all",
136+
"hidden": true
137+
},
138+
"internalConsoleOptions": "neverOpen"
139+
},
140+
{
141+
"name": "Attach to Frontend in the Microsoft 365 app (Chrome)",
142+
"type": "chrome",
143+
"request": "launch",
144+
"url": "https://www.office.com/m365apps/${{local:M365_APP_ID}}?auth=2&${account-hint}",
145+
"cascadeTerminateToConfigurations": [
146+
"Attach to Local Service"
147+
],
148+
"presentation": {
149+
"group": "all",
150+
"hidden": true
151+
},
152+
"internalConsoleOptions": "neverOpen"
153+
},
154+
{
155+
"name": "Attach to Local Service",
156+
"type": "node",
157+
"request": "attach",
158+
"port": 9239,
159+
"restart": true,
160+
"presentation": {
161+
"group": "all",
162+
"hidden": true
163+
},
164+
"internalConsoleOptions": "neverOpen"
165+
}
166+
],
167+
"compounds": [
168+
{
169+
"name": "Debug in Teams (Edge)",
170+
"configurations": [
171+
"Attach to Frontend in Teams (Edge)",
172+
"Attach to Local Service"
173+
],
174+
"preLaunchTask": "Start Teams App Locally",
175+
"presentation": {
176+
"group": "group 1: Teams",
177+
"order": 1
178+
},
179+
"stopAll": true
180+
},
181+
{
182+
"name": "Debug in Teams (Chrome)",
183+
"configurations": [
184+
"Attach to Frontend in Teams (Chrome)",
185+
"Attach to Local Service"
186+
],
187+
"preLaunchTask": "Start Teams App Locally",
188+
"presentation": {
189+
"group": "group 1: Teams",
190+
"order": 2
191+
},
192+
"stopAll": true
193+
},
194+
{
195+
"name": "Debug in Outlook (Edge)",
196+
"configurations": [
197+
"Attach to Frontend in Outlook (Edge)",
198+
"Attach to Local Service"
199+
],
200+
"preLaunchTask": "Start Teams App Locally",
201+
"presentation": {
202+
"group": "group 2: Outlook",
203+
"order": 1
204+
},
205+
"stopAll": true
206+
},
207+
{
208+
"name": "Debug in Outlook (Chrome)",
209+
"configurations": [
210+
"Attach to Frontend in Outlook (Chrome)",
211+
"Attach to Local Service"
212+
],
213+
"preLaunchTask": "Start Teams App Locally",
214+
"presentation": {
215+
"group": "group 2: Outlook",
216+
"order": 2
217+
},
218+
"stopAll": true
219+
},
220+
{
221+
"name": "Debug in the Microsoft 365 app (Edge)",
222+
"configurations": [
223+
"Attach to Frontend in the Microsoft 365 app (Edge)",
224+
"Attach to Local Service"
225+
],
226+
"preLaunchTask": "Start Teams App Locally",
227+
"presentation": {
228+
"group": "group 3: the Microsoft 365 app",
229+
"order": 1
230+
},
231+
"stopAll": true
232+
},
233+
{
234+
"name": "Debug in the Microsoft 365 app (Chrome)",
235+
"configurations": [
236+
"Attach to Frontend in the Microsoft 365 app (Chrome)",
237+
"Attach to Local Service"
238+
],
239+
"preLaunchTask": "Start Teams App Locally",
240+
"presentation": {
241+
"group": "group 3: the Microsoft 365 app",
242+
"order": 2
243+
},
244+
"stopAll": true
245+
}
246+
]
247+
}

.vscode/settings.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"debug.onTaskErrors": "abort",
3+
"json.schemas": [
4+
{
5+
"fileMatch": [
6+
"/aad.*.json"
7+
],
8+
"schema": {}
9+
}
10+
]
11+
}

.vscode/tasks.json

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
// This file is automatically generated by Teams Toolkit.
2+
// The teamsfx tasks defined in this file require Teams Toolkit version >= 5.0.0.
3+
// See https://aka.ms/teamsfx-tasks for details on how to customize each task.
4+
{
5+
"version": "2.0.0",
6+
"tasks": [
7+
{
8+
"label": "Start Teams App Locally",
9+
"dependsOn": [
10+
"Validate prerequisites",
11+
"Provision",
12+
"Deploy",
13+
"Start application"
14+
],
15+
"dependsOrder": "sequence"
16+
},
17+
{
18+
// Check all required prerequisites.
19+
// See https://aka.ms/teamsfx-tasks/check-prerequisites to know the details and how to customize the args.
20+
"label": "Validate prerequisites",
21+
"type": "teamsfx",
22+
"command": "debug-check-prerequisites",
23+
"args": {
24+
"prerequisites": [
25+
"nodejs", // Validate if Node.js is installed.
26+
"m365Account", // Sign-in prompt for Microsoft 365 account, then validate if the account enables the sideloading permission.
27+
"portOccupancy" // Validate available ports to ensure those debug ones are not occupied.
28+
],
29+
"portOccupancy": [
30+
53000, // tab service port,
31+
9239 // app inspector port for Node.js debugger
32+
]
33+
}
34+
},
35+
{
36+
// Create the debug resources.
37+
// See https://aka.ms/teamsfx-tasks/provision to know the details and how to customize the args.
38+
"label": "Provision",
39+
"type": "teamsfx",
40+
"command": "provision",
41+
"args": {
42+
"env": "local"
43+
}
44+
},
45+
{
46+
// Build project.
47+
// See https://aka.ms/teamsfx-tasks/deploy to know the details and how to customize the args.
48+
"label": "Deploy",
49+
"type": "teamsfx",
50+
"command": "deploy",
51+
"args": {
52+
"env": "local"
53+
}
54+
},
55+
{
56+
"label": "Start application",
57+
"type": "shell",
58+
"command": "npm run dev:teamsfx",
59+
"isBackground": true,
60+
"options": {
61+
"cwd": "${workspaceFolder}"
62+
},
63+
"problemMatcher": {
64+
"pattern": {
65+
"regexp": "^.*$",
66+
"file": 0,
67+
"location": 1,
68+
"message": 2
69+
},
70+
"background": {
71+
"activeOnStart": true,
72+
"beginsPattern": ".*",
73+
"endsPattern": "Compiled|Failed|compiled|failed|listening"
74+
}
75+
}
76+
}
77+
]
78+
}

.webappignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.webappignore
2+
.fx
3+
.deployment
4+
.localSettings
5+
.vscode
6+
*.js.map
7+
*.ts.map
8+
*.ts
9+
.git*
10+
.tsbuildinfo
11+
CHANGELOG.md
12+
readme.md
13+
local.settings.json
14+
test
15+
tsconfig.json
16+
.DS_Store
17+
teamsapp.yml
18+
teamsapp.*.yml
19+
/env/
20+
/script/
21+
/node_modules/.bin
22+
/node_modules/ts-node
23+
/node_modules/typescript
24+
/appPackage/
25+
/infra/
26+
/teamsfx/

0 commit comments

Comments
 (0)