forked from Azure-Samples/contoso-real-estate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtasks.json
165 lines (165 loc) · 3.98 KB
/
tasks.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
"version": "2.0.0",
"tasks": [
{
"label": "Start Web",
"type": "dotenv",
"targetTasks": ["Restore Web", "Web npm start"],
"file": "${input:dotEnvFilePath}"
},
{
"label": "Restore Web",
"type": "shell",
"command": "azd restore --service web",
"presentation": {
"reveal": "silent"
},
"problemMatcher": []
},
{
"label": "Web npm start",
"detail": "Helper task--use 'Start Web' task to ensure environment is set up correctly",
"type": "shell",
"command": "npm run start",
"options": {
"cwd": "${workspaceFolder}/packages/contoso-real-estate-ui",
"env": {
"BROWSER": "none"
}
},
"presentation": {
"panel": "dedicated"
},
"problemMatcher": []
},
{
"label": "Start API",
"type": "dotenv",
"targetTasks": ["Restore API", "API npm start"],
"file": "${input:dotEnvFilePath}"
},
{
"label": "Restore API",
"type": "shell",
"command": "azd restore --service api",
"presentation": {
"reveal": "silent"
},
"problemMatcher": []
},
{
"label": "API npm start",
"detail": "Helper task--use 'Start API' task to ensure environment is set up correctly",
"type": "shell",
"command": "func start --typescript",
"options": {
"cwd": "${workspaceFolder}/packages/contoso-real-estate-api",
"env": {
"NODE_ENV": "development"
}
},
"presentation": {
"panel": "dedicated"
},
"problemMatcher": []
},
{
"label": "Start API and Web",
"dependsOn": ["Start API", "Start Web"],
"problemMatcher": []
},
{
"label": "Generate Angular Bundles",
"type": "npm",
"script": "start",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
},
{
"label": "Generate test Angular Bundle",
"type": "npm",
"script": "test",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
},
{
"type": "func",
"label": "func: host start",
"command": "host start",
"problemMatcher": "$func-node-watch",
"isBackground": true,
"dependsOn": "npm build (functions)",
"options": {
"cwd": "${workspaceFolder}/packages/api-v4"
}
},
{
"type": "shell",
"label": "npm build (functions)",
"command": "npm run build",
"dependsOn": "npm clean (functions)",
"problemMatcher": "$tsc",
"options": {
"cwd": "${workspaceFolder}/packages/api-v4"
}
},
{
"type": "shell",
"label": "npm install (functions)",
"command": "npm install",
"options": {
"cwd": "${workspaceFolder}/packages/api-v4"
}
},
{
"type": "shell",
"label": "npm prune (functions)",
"command": "npm prune --production",
"dependsOn": "npm build (functions)",
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}/packages/api-v4"
}
},
{
"type": "shell",
"label": "npm clean (functions)",
"command": "npm run clean",
"dependsOn": "npm install (functions)",
"options": {
"cwd": "${workspaceFolder}/packages/api-v4"
}
}
],
"inputs": [
{
"id": "dotEnvFilePath",
"type": "command",
"command": "azure-dev.commands.getDotEnvFilePath"
}
]
}