1+ // This file is automatically generated by Microsoft 365 Agents Toolkit.
2+ // The teamsfx tasks defined in this file require Microsoft 365 Agents 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+ " Start local tunnel" ,
12+ " Start Azurite emulator" ,
13+ " Create resources" ,
14+ " Build project" ,
15+ " Start application"
16+ ],
17+ "dependsOrder" : " sequence"
18+ },
19+ {
20+ "label" : " Validate prerequisites" ,
21+ "type" : " teamsfx" ,
22+ "command" : " debug-check-prerequisites" ,
23+ "args" : {
24+ "prerequisites" : [
25+ " python" ,
26+ " m365Account" ,
27+ " portOccupancy"
28+ ],
29+ "portOccupancy" : [
30+ 7071
31+ ]
32+ }
33+ },
34+ {
35+ // Start the local tunnel service to forward public URL to local port and inspect traffic.
36+ // See https://aka.ms/teamsfx-tasks/local-tunnel for the detailed args definitions.
37+ "label" : " Start local tunnel" ,
38+ "type" : " teamsfx" ,
39+ "command" : " debug-start-local-tunnel" ,
40+ "args" : {
41+ "type" : " dev-tunnel" ,
42+ "ports" : [
43+ {
44+ "portNumber" : 7071 ,
45+ "protocol" : " http" ,
46+ "access" : " public" ,
47+ "writeToEnvironmentFile" : {
48+ "endpoint" : " OPENAPI_SERVER_URL"
49+ }
50+ }
51+ ],
52+ "env" : " local"
53+ },
54+ "isBackground" : true ,
55+ "problemMatcher" : " $teamsfx-local-tunnel-watch"
56+ },
57+ {
58+ "label" : " Create resources" ,
59+ "type" : " teamsfx" ,
60+ "command" : " provision" ,
61+ "args" : {
62+ "env" : " local"
63+ }
64+ },
65+ {
66+ "label" : " Build project" ,
67+ "type" : " teamsfx" ,
68+ "command" : " deploy" ,
69+ "args" : {
70+ "env" : " local"
71+ }
72+ },
73+ {
74+ "label" : " Start application" ,
75+ "dependsOn" : [
76+ " Start backend"
77+ ]
78+ },
79+ {
80+ "label" : " Start backend" ,
81+ "type" : " shell" ,
82+ "command" : " func host start --python --port 7071" ,
83+ "isBackground" : true ,
84+ "options" : {
85+ "cwd" : " ${workspaceFolder}"
86+ },
87+ "problemMatcher" : {
88+ "pattern" : {
89+ "regexp" : " ^.*$" ,
90+ "file" : 0 ,
91+ "location" : 1 ,
92+ "message" : 2
93+ },
94+ "background" : {
95+ "activeOnStart" : true ,
96+ "beginsPattern" : " ^.*(Job host stopped|signaling restart).*$" ,
97+ "endsPattern" : " ^.*(Worker process started and initialized|Host lock lease acquired by instance ID).*$"
98+ }
99+ },
100+ "presentation" : {
101+ "reveal" : " silent"
102+ },
103+ "dependsOn" : " Start Azurite emulator"
104+ },
105+ {
106+ "label" : " Start Azurite emulator" ,
107+ "type" : " shell" ,
108+ "command" : " azurite --silent --location .azurite --debug .azurite/debug.log" ,
109+ "isBackground" : true ,
110+ "problemMatcher" : {
111+ "pattern" : [
112+ {
113+ "regexp" : " ^.*$" ,
114+ "file" : 0 ,
115+ "location" : 1 ,
116+ "message" : 2
117+ }
118+ ],
119+ "background" : {
120+ "activeOnStart" : true ,
121+ "beginsPattern" : " Azurite" ,
122+ "endsPattern" : " successfully listening"
123+ }
124+ },
125+ "options" : {
126+ "cwd" : " ${workspaceFolder}"
127+ },
128+ "presentation" : {
129+ "reveal" : " silent"
130+ }
131+ },
132+ {
133+ "label" : " pip install" ,
134+ "type" : " shell" ,
135+ "command" : " pip install -r requirements.txt" ,
136+ "options" : {
137+ "cwd" : " ${workspaceFolder}"
138+ },
139+ "presentation" : {
140+ "reveal" : " silent"
141+ }
142+ }
143+ ]
144+ }
0 commit comments