forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaunch.json
220 lines (220 loc) · 6.64 KB
/
launch.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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug test",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/scripts/debug-test.js",
"cwd": "${fileDirname}",
"stopOnEntry": false,
"args": ["-i", "--watch"],
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy", "--debug"],
"env": {
"NODE_ENV": "development"
},
"sourceMaps": true,
"outputCapture": "std",
"console": "integratedTerminal"
},
{
"name": "Debug current open test",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/scripts/debug-test.js",
"cwd": "${fileDirname}",
"stopOnEntry": false,
"args": ["-i", "--testPathPattern=\\b${fileBasenameNoExtension}", "--watch"],
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy", "--inspect"],
"env": {
"NODE_ENV": "development"
},
"sourceMaps": true,
"outputCapture": "std",
"console": "integratedTerminal"
},
{
"name": "Run server",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/apps/server-rendered-app/server/index.js",
"cwd": "${workspaceRoot}/apps/server-rendered-app",
"stopOnEntry": false,
"args": ["-i"],
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy", "--debug"],
"env": {
"NODE_ENV": "development"
},
"sourceMaps": true
},
{
"name": "Build fabric",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/scripts/just-scripts.js",
"cwd": "${workspaceRoot}/packages/office-ui-fabric-react",
"stopOnEntry": false,
"args": ["ts"],
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy", "--debug"],
"env": {
"NODE_ENV": "development"
},
"sourceMaps": true
},
{
"name": "Debug build Production",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/scripts/just-scripts.js",
"stopOnEntry": false,
"args": ["tslint"],
"cwd": "${workspaceRoot}/packages/styling",
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy", "--debug"],
"env": {
"NODE_ENV": "development"
}
},
{
"name": "Debug build Dogfood",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/scripts/just-scripts.js",
"stopOnEntry": false,
"args": ["webpack", "--", "--production", "--dogfood"],
"cwd": "${workspaceRoot}/apps/fabric-website",
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy", "--debug"],
"env": {
"NODE_ENV": "development"
}
},
{
"name": "Debug npm start (fabric-website)",
"type": "node",
"request": "launch",
// scripts/start.js generates this script path and launches a subprocess (which is harder
// to debug), so in the launch configuration we start the script directly instead.
"program": "${workspaceRoot}/node_modules/webpack-dev-server/bin/webpack-dev-server.js",
"stopOnEntry": true,
"cwd": "${workspaceRoot}/apps/fabric-website",
"runtimeExecutable": null,
// Use the config file for fabric-website, plus command line options used in start.js
"args": [
"--nolazy",
"--debug",
"--config",
"${workspaceRoot}/apps/fabric-website/webpack.serve.config.js",
"--open"
],
"env": {
"NODE_ENV": "development"
}
},
{
"name": "Run ssr tests",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/apps/ssr-tests/node_modules/mocha/bin/_mocha",
"stopOnEntry": false,
"args": ["--debug", "dist/ssr-tests.js"],
"cwd": "${workspaceRoot}/apps/ssr-tests",
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy", "--debug"],
"env": {
"NODE_ENV": "development"
},
"sourceMaps": false
},
{
"name": "Debug add new component",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/scripts/create-component.js",
"cwd": "${workspaceRoot}",
"stopOnEntry": false,
"args": ["--name", "TestComponentName"],
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy", "--debug"],
"env": {
"NODE_ENV": "development"
},
"sourceMaps": true
},
{
"name": "Debug lint imports",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/scripts/tasks/lint-imports.js",
"cwd": "${workspaceRoot}/packages/office-ui-fabric-react",
"stopOnEntry": false,
"args": ["--name", "TestComponentName"],
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy", "--debug"],
"env": {
"NODE_ENV": "development"
},
"sourceMaps": true
},
{
"name": "Debug update release notes",
"type": "node",
"request": "launch",
"protocol": "inspector",
"cwd": "${workspaceRoot}",
"args": [
"${workspaceRoot}/scripts/updateReleaseNotes/index.ts",
"--token",
// For local testing, generate a personal access token (https://github.com/settings/tokens)
// and replace "your token here" with the token. DO NOT COMMIT YOUR TOKEN!
"your token here",
"--patch",
"--age",
"10"
],
"runtimeArgs": ["--nolazy", "--debug", "-r", "${workspaceRoot}/scripts/ts-node-register"],
"env": {
"NODE_ENV": "development"
},
"sourceMaps": true,
"console": "integratedTerminal"
},
{
"name": "Debug page json generator",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/packages/api-docs/lib/generatePageJsonFiles.js",
"cwd": "${workspaceRoot}/packages/api-docs",
"stopOnEntry": false,
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy", "--debug"],
"env": {
"NODE_ENV": "development"
},
"sourceMaps": true,
"console": "integratedTerminal"
},
{
"name": "Debug gulp task",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/gulp/bin/gulp.js",
"stopOnEntry": false,
"runtimeArgs": ["--nolazy", "--debug"],
// You can change the task name and cwd locally as needed
"args": ["build"],
"cwd": "${workspaceRoot}/packages/fluentui/react-northstar",
"env": {
"NODE_ENV": "development",
// This is used in scripts/babel/index.js to enable sourcemaps
"DEBUG": "1"
},
"sourceMaps": true,
"console": "integratedTerminal"
}
]
}