forked from microsoft/fluentui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlaunch.json
198 lines (198 loc) · 6.09 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
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug test",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/scripts/executors/src/debug-test.js",
"cwd": "${fileDirname}",
"stopOnEntry": false,
"args": ["-i", "--watch"],
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy", "--inspect"],
"env": {
"NODE_ENV": "development"
},
"sourceMaps": true,
"outputCapture": "std",
"console": "integratedTerminal"
},
{
"name": "Debug current open test",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/scripts/executors/src/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": "Debug current open test (v0)",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/scripts/executors/src/debug-test.js",
"cwd": "${fileDirname}",
"stopOnEntry": false,
"args": ["-i", "--testPathPattern=\\b${fileBasenameNoExtension}", "--watch"],
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy", "--inspect"],
"env": {
"NODE_ENV": "test"
},
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/packages/fluentui/*/dist/**/*.js"],
"outputCapture": "std",
"console": "integratedTerminal"
},
{
"name": "Build @fluentui/react",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node-modules/just-scripts/bin/just-scripts.js",
"cwd": "${workspaceRoot}/packages/react",
"stopOnEntry": false,
"args": ["ts"],
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy", "--inspect"],
"console": "integratedTerminal",
"env": {
"NODE_ENV": "development"
},
"sourceMaps": true
},
{
"name": "Start public-docsite",
"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/public-docsite",
"runtimeExecutable": null,
// Use the config file for public-docsite, plus command line options used in start.js
"args": [
"--nolazy",
"--inspect",
"--config",
"${workspaceRoot}/apps/public-docsite/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": ["--inspect", "dist/ssr-tests.js"],
"cwd": "${workspaceRoot}/apps/ssr-tests",
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy", "--inspect"],
"env": {
"NODE_ENV": "development"
},
"sourceMaps": false
},
{
"name": "Debug lint imports",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/scripts/tasks/lint-imports.js",
"cwd": "${workspaceRoot}/packages/react",
"stopOnEntry": false,
"args": ["--name", "TestComponentName"],
"runtimeExecutable": null,
"runtimeArgs": ["--nolazy", "--inspect"],
"env": {
"NODE_ENV": "development"
},
"sourceMaps": true
},
{
"name": "Debug update release notes",
"type": "node",
"request": "launch",
"protocol": "inspector",
"cwd": "${workspaceRoot}",
"args": [
"${workspaceRoot}/scripts/update-release-notes/src/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", "--inspect", "-r", "${workspaceRoot}/scripts/ts-node/src/register"],
"env": {
"NODE_ENV": "development"
},
"sourceMaps": true,
"console": "integratedTerminal"
},
{
"name": "Debug eslint",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/node_modules/.bin/eslint",
"cwd": "${workspaceRoot}/packages/example-data",
"stopOnEntry": false,
"runtimeExecutable": null,
"args": ["--ext", ".ts,.tsx,.js,.jsx", "src"],
"runtimeArgs": ["--nolazy", "--inspect"],
"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", "--inspect"],
// 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"
},
{
"name": "Debug create-package",
"type": "node-terminal",
"request": "launch",
"command": "yarn create-package",
"cwd": "${workspaceFolder}",
"outputCapture": "std"
},
{
"name": "Debug create-component",
"type": "node-terminal",
"request": "launch",
"command": "yarn create-component",
"cwd": "${workspaceFolder}",
"outputCapture": "std"
}
]
}