-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpackage.json
308 lines (308 loc) · 10.6 KB
/
package.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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
{
"name": "b2-catkin-tools",
"displayName": "catkin-tools",
"publisher": "betwo",
"license": "MIT",
"description": "Support for catkin_tools workspaces",
"version": "4.8.3",
"icon": "assets/icon.png",
"repository": {
"type": "git",
"url": "https://github.com/betwo/vscode-catkin-tools"
},
"engines": {
"vscode": "^1.77.0"
},
"categories": [
"Other",
"Testing"
],
"keywords": [
"catkin-tools",
"catkin",
"colcon",
"build",
"multi-root ready"
],
"activationEvents": [
"*"
],
"main": "./dist/extension",
"contributes": {
"taskDefinitions": [
{
"type": "catkin_build",
"properties": {
"task": {
"type": "string",
"description": "The catkin build task to run {build, build current package, run current package tests} "
},
"package": {
"type": "string",
"description": "(optional) The package to build."
}
}
},
{
"type": "colcon",
"properties": {
"task": {
"type": "string",
"description": "The colcon build task to run {build, build current package, run current package tests} "
}
}
}
],
"configuration": [
{
"title": "catkin tools settings",
"properties": {
"catkin_tools.shell": {
"type": "string",
"enum": [
"bash",
"sh",
"zsh"
],
"default": "bash",
"description": "Shell to use for catkin commands. Also determines which `setup.<shell>` file is loaded."
},
"catkin_tools.defaultRosWorkspaces": {
"type": "array",
"default": [],
"description": "A list of paths to use when searching for the default ros workspace. When empty, /opt/ros will be searched."
},
"catkin_tools.cppStandard": {
"type": "string",
"default": "c++11",
"description": "C++ standard to use as fallback if no compile_commands are found (see C_CPP extension)"
},
"catkin_tools.useInstallSpace": {
"type": "boolean",
"default": "true",
"description": "Flag to source from install space instead of devel space"
},
"catkin_tools.intelliSenseMode": {
"type": "string",
"default": "gcc-x64",
"description": "Compiler to emulate (see C_CPP extension)"
},
"catkin_tools.mergedCompileCommandsJsonPath": {
"type": "string",
"default": "",
"description": "If non empty, all compile_commands.json files are merged and written to this path.\n You can use ${workspaceFolder} here. The variable will be replaced with all folders added to this workspace."
},
"catkin_tools.gtestMacroRegex": {
"type": "array",
"default": [
"^\\s*catkin_add_gtest",
"^\\s*ament_add_gtest",
"^\\s*[^\\s\\(]*add[^\\s\\(]*test"
],
"description": "Regular expression(s) to check a CMakeLists.txt file for (possible) GTest targets"
},
"catkin_tools.testCompileOutputEnabled": {
"type": "boolean",
"default": true,
"description": "If true, show compiler output when building tests."
},
"catkin_tools.recursiveHeaderParsingEnabled": {
"type": "boolean",
"default": false,
"description": "If true, parse recursive package dependencies for header file resolution (experimental)."
},
"catkin_tools.colconSupportEnabled": {
"type": "boolean",
"default": false,
"description": "If true, try to use colcon as build backend if possible (experimental)."
},
"catkin_tools.additionalEnvironmentVariables": {
"type": "array",
"default": [],
"description": "Environment varibles that are injected before running catkin commands. Must be of the form 'KEY=VALUE'"
},
"catkin_tools.catkinCustomBuildFlags": {
"type": "array",
"default": [],
"description": "Arguments passed to `catkin build` when the task 'catkin build with custom parameters' is executed"
}
}
}
],
"commands": [
{
"command": "extension.b2.catkin_tools.reload_workspaces",
"title": "Reload all opened workspaces"
},
{
"command": "extension.b2.catkin_tools.reload_compile_commands",
"title": "Reload / Merge compile commands (see mergedCompileCommandsJsonPath)"
},
{
"command": "extension.b2.catkin_tools.switch_profile",
"title": "Change active catkin_tools profile"
},
{
"command": "extension.b2.catkin_tools.build_tests",
"title": "Build tests in package",
"category": "Test",
"icon": "$(package)"
},
{
"command": "extension.b2.catkin_tools.reload_tests",
"title": "Reload tests in package",
"category": "Test",
"icon": "$(refresh)"
}
],
"menus": {
"testing/item/context": [
{
"command": "extension.b2.catkin_tools.build_tests",
"group": "inline"
},
{
"command": "extension.b2.catkin_tools.reload_tests",
"group": "inline"
}
]
},
"problemMatchers": [
{
"name": "catkin-gcc",
"fileLocation": "absolute",
"owner": "catkin",
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
{
"name": "catkin-cmake",
"fileLocation": "absolute",
"owner": "catkin",
"pattern": [
{
"regexp": "^CMake\\s+(Warning|Error)\\s+at\\s+(\\S+):(\\d+)\\s*(.*):\\s*$",
"file": 2,
"line": 3,
"severity": 1
},
{
"regexp": "^(.*|\\s{2}.*|Call Stack.*)$",
"message": 1,
"loop": true
}
]
},
{
"name": "catkin-gtest-failed",
"fileLocation": "absolute",
"owner": "catkin",
"pattern": [
{
"regexp": "^(\\S+):(\\d+):\\s*(Failure\\s*)$",
"file": 1,
"line": 2,
"severity": 4,
"message": 3
},
{
"regexp": "^Failed$",
"message": 1
}
]
},
{
"name": "catkin-gtest",
"fileLocation": "absolute",
"owner": "catkin",
"pattern": [
{
"regexp": "^(\\S+):(\\d+):\\s*(Failure\\s*)$",
"file": 1,
"line": 2,
"severity": 4,
"message": 3
},
{
"regexp": "^(Failed|\\s*Value of\\s*:.*)$",
"message": 1
},
{
"regexp": "^(\\s*Actual\\s*:.*)$",
"message": 1
},
{
"regexp": "^(\\s*Expected\\s*:.*)$",
"message": 1
}
]
}
]
},
"scripts": {
"main-set-dist": "sed -i -e \"s/out\\/extension/dist\\/extension/\" package.json",
"main-set-out": "sed -i -e \"s/dist\\/extension/out\\/extension/\" package.json",
"prevscode:prepublish": "npm run main-set-dist",
"vscode:prepublish": "webpack --mode production",
"precompile": "npm run main-set-out",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"prebuild-docker-images": "npm run main-set-out",
"build-docker-images": "docker build -f docker/test/headless.docker . -t vscode-catkin-tools",
"pretest": "npm run compile",
"test": "node ./out/test/run_all_tests.js",
"pretest-headless": "npm run build-docker-images",
"test-headless": "set -x; /usr/bin/Xvfb :99 -screen 0 1024x768x24 -nolisten tcp 2>&1 & XVFBPID=$!; sleep 1; docker run --rm -e DISPLAY=:99.0 -v /tmp/.X11-unix:/tmp/.X11-unix -e CI=true vscode-catkin-tools bash -c \"npm run test\"; EXIT=$?; echo \"Stopping xvfb\"; kill -9 $XVFBPID; exit $EXIT",
"preunittest": "npm run compile",
"unittest": "node ./out/test/run_unit_tests.js",
"preunittest-headless": "npm run compile",
"unittest-headless": "set -x; /usr/bin/Xvfb :99 -screen 0 1024x768x24 -nolisten tcp 2>&1 & XVFBPID=$!; sleep 1; DISPLAY=:99.0 npm run unittest; EXIT=$?; echo \"Stopping xvfb\"; kill -9 $XVFBPID; exit $EXIT",
"preintegrationtest": "npm run compile",
"integrationtest": "node ./out/test/run_integration_tests.js",
"preintegrationtest-headless": "npm run build-docker-images",
"integrationtest-headless": "set -x; /usr/bin/Xvfb :99 -screen 0 1024x768x24 -nolisten tcp 2>&1 & XVFBPID=$!; sleep 1; docker run --rm -e DISPLAY=:99.0 -v /tmp/.X11-unix:/tmp/.X11-unix -e CI=true vscode-catkin-tools bash -c \"npm run integrationtest\"; EXIT=$?; echo \"Stopping xvfb\"; kill -9 $XVFBPID; exit $EXIT",
"preintegrationtest-headless-loop": "npm run build-docker-images",
"integrationtest-headless-loop": "set -x; /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & XVFBPID=$!; docker run --rm -e DISPLAY=:99 -v /tmp/.X11-unix:/tmp/.X11-unix -e CI=true vscode-catkin-tools bash -c \"OK=0; ITERATION=0; while [[ \"\\$OK\" == \"0\" ]]; do echo \\\"Begin iteration \\$ITERATION\\\"; npm run integrationtest; OK=\\$?; echo \\\"End iteration \\$ITERATION\\\"; ITERATION=\\$((ITERATION+1)); done\"; EXIT=$?; echo \"Stopping xvfb after ${ITERATION} iterations\"; kill -9 $XVFBPID; exit $EXIT",
"webpack": "webpack --mode development",
"webpack-dev": "webpack --mode development --watch"
},
"devDependencies": {
"@types/chai": "^4.3.0",
"@types/jsonfile": "^5.0.1",
"@types/mocha": "^9.0.0",
"@types/node": "^17.0.0",
"@types/signals": "^1.0.1",
"@vscode/test-electron": "^1.6.1",
"chai": "^4.3.4",
"lodash": "^4.17.21",
"mocha": "^9.0.0",
"terser": "^4.8.0",
"ts-loader": "^9.3.1",
"tslint": "^6.1.3",
"typescript": "^4.7.4",
"webpack": "^5.53.0",
"webpack-cli": "^4.8.0"
},
"dependencies": {
"child_process": "^1.0.2",
"fast-glob": "^3.2.6",
"fast-xml-parser": "^4.2.5",
"fs": "0.0.1-security",
"jsonfile": "^5.0.0",
"signals": "^1.0.0",
"tree-kill": "^1.2.2",
"tslog": "^4.8.2",
"vscode-catkin-tools-api": "file:api",
"vscode-cpptools": "^2.1.2",
"vscode-jsonrpc": "^4.0.0"
},
"extensionDependencies": [
"ms-vscode.cpptools"
]
}