Skip to content

Commit 9e6d1fe

Browse files
committed
chore: Enable vscode debugging
Signed-off-by: Gordon Smith <[email protected]>
1 parent 6f97b7b commit 9e6d1fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+961
-267
lines changed

packages/base91/.vscode/launch.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "test-browser",
6+
"type": "msedge",
7+
"request": "launch",
8+
"url": "http://localhost:8888",
9+
"webRoot": "${workspaceFolder}",
10+
"outFiles": [
11+
"${workspaceFolder}/**/*.js",
12+
"${workspaceFolder}/**/*.c",
13+
"!**/node_modules/**"
14+
],
15+
},
16+
{
17+
"name": "test-node",
18+
"type": "node",
19+
"request": "launch",
20+
"runtimeArgs": [
21+
"run-script",
22+
"test-node"
23+
],
24+
"runtimeExecutable": "npm",
25+
"skipFiles": [
26+
"<node_internals>/**"
27+
],
28+
"outFiles": [
29+
"${workspaceFolder}/**/*.js",
30+
"${workspaceFolder}/**/*.c",
31+
"!**/node_modules/**"
32+
],
33+
}
34+
]
35+
}

packages/base91/.vscode/tasks.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"label": "build-types-watch",
7+
"script": "build-types-watch",
8+
"problemMatcher": [
9+
"$tsc-watch"
10+
],
11+
"presentation": {
12+
"group": "group-build"
13+
}
14+
},
15+
{
16+
"type": "npm",
17+
"label": "build-ts-watch",
18+
"script": "build-ts-watch",
19+
"problemMatcher": [
20+
"$tsc-watch"
21+
],
22+
"presentation": {
23+
"group": "group-build"
24+
}
25+
},
26+
{
27+
"type": "npm",
28+
"label": "build-cpp-watch",
29+
"script": "build-cpp-watch",
30+
"options": {
31+
"cwd": "${workspaceFolder}/../.."
32+
},
33+
"problemMatcher": {
34+
"owner": "cpp",
35+
"fileLocation": [
36+
"relative",
37+
"${workspaceFolder}"
38+
],
39+
"pattern": {
40+
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
41+
"file": 1,
42+
"line": 2,
43+
"column": 3,
44+
"severity": 4,
45+
"message": 5
46+
}
47+
},
48+
"presentation": {
49+
"group": "group-build"
50+
}
51+
},
52+
{
53+
"type": "npm",
54+
"label": "test-serve",
55+
"script": "test-serve",
56+
"presentation": {
57+
"group": "group-build"
58+
}
59+
},
60+
{
61+
"label": "build",
62+
"dependsOn": [
63+
"build-types-watch",
64+
"build-ts-watch",
65+
"build-cpp-watch",
66+
"test-serve"
67+
],
68+
"group": {
69+
"kind": "build",
70+
"isDefault": true
71+
}
72+
}
73+
]
74+
}

packages/base91/esbuild.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { browserTpl, neutralTpl, nodeTpl } from "@hpcc-js/esbuild-plugins";
33
// config ---
44
await neutralTpl("src/index.ts", "dist/index");
55
await Promise.all([
6-
browserTpl("spec/index-browser.ts", "dist-test/index.browser"),
7-
nodeTpl("spec/index-node.ts", "dist-test/index.node"),
6+
browserTpl("spec/index-browser.ts", "dist-test/index.browser", undefined, undefined, undefined, ["@hpcc-js/wasm-base91"]),
7+
nodeTpl("spec/index-node.ts", "dist-test/index.node", undefined, undefined, undefined, ["@hpcc-js/wasm-base91"]),
88
]);
99

packages/base91/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"lint-skypack": "npx -y @skypack/package-check",
2929
"lint-eslint": "eslint src/**/*.ts spec/*.ts",
3030
"lint": "run-p lint-eslint",
31+
"test-serve": "jasmine-browser-runner serve",
3132
"test-browser": "jasmine-browser-runner runSpecs",
3233
"test-node": "jasmine",
3334
"test": "run-s test-node test-browser",
Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,35 @@
1+
import pkg from "../../package.json" with {type: "json"};
2+
13
export default {
2-
srcDir: "src",
3-
srcFiles: [
4-
"**/*.ts"
5-
],
6-
specDir: "dist-test",
7-
specFiles: [
8-
"index.browser.js"
9-
],
10-
env: {
11-
stopSpecOnExpectationFailure: false,
12-
stopOnSpecFailure: false,
13-
random: false
14-
},
4+
srcDir: "src",
5+
srcFiles: [
6+
"*.ts"
7+
],
8+
specDir: "dist-test",
9+
specFiles: [
10+
"*.browser.js"
11+
],
12+
esmFilenameExtension: ".js",
13+
importMap: {
14+
imports: {
15+
[pkg.name]: "dist/index.js"
16+
}
17+
},
18+
env: {
19+
stopSpecOnExpectationFailure: false,
20+
stopOnSpecFailure: false,
21+
random: false
22+
},
1523

16-
// For security, listen only to localhost. You can also specify a different
17-
// hostname or IP address, or remove the property or set it to "*" to listen
18-
// to all network interfaces.
19-
listenAddress: "localhost",
24+
// For security, listen only to localhost. You can also specify a different
25+
// hostname or IP address, or remove the property or set it to "*" to listen
26+
// to all network interfaces.
27+
listenAddress: "localhost",
2028

21-
// The hostname that the browser will use to connect to the server.
22-
hostname: "localhost",
29+
// The hostname that the browser will use to connect to the server.
30+
hostname: "localhost",
2331

24-
browser: {
25-
name: "headlessFirefox"
26-
}
32+
browser: {
33+
name: "headlessFirefox"
34+
}
2735
};
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"spec_dir": "dist-test",
3-
"spec_files": [
4-
"index.node.js"
5-
],
6-
"env": {
7-
"stopSpecOnExpectationFailure": false,
8-
"random": false
9-
}
2+
"spec_dir": "dist-test",
3+
"spec_files": [
4+
"index.node.js"
5+
],
6+
"env": {
7+
"stopSpecOnExpectationFailure": false,
8+
"random": false
9+
}
1010
}

packages/base91/src-cpp/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,3 @@ set_target_properties(base91lib PROPERTIES LINK_FLAGS "${LINK_FLAGS}")
3939
target_link_libraries(base91lib
4040
PRIVATE unofficial::base91::base91
4141
)
42-

packages/duckdb/.vscode/launch.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "test-browser",
6+
"type": "msedge",
7+
"request": "launch",
8+
"url": "http://localhost:8888",
9+
"webRoot": "${workspaceFolder}",
10+
"outFiles": [
11+
"${workspaceFolder}/**/*.js",
12+
"${workspaceFolder}/**/*.c",
13+
"!**/node_modules/**"
14+
],
15+
},
16+
{
17+
"name": "test-node",
18+
"type": "node",
19+
"request": "launch",
20+
"runtimeArgs": [
21+
"run-script",
22+
"test-node"
23+
],
24+
"runtimeExecutable": "npm",
25+
"skipFiles": [
26+
"<node_internals>/**"
27+
],
28+
"outFiles": [
29+
"${workspaceFolder}/**/*.js",
30+
"${workspaceFolder}/**/*.c",
31+
"!**/node_modules/**"
32+
],
33+
}
34+
]
35+
}

packages/duckdb/.vscode/tasks.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "npm",
6+
"label": "build-types-watch",
7+
"script": "build-types-watch",
8+
"problemMatcher": [
9+
"$tsc-watch"
10+
],
11+
"presentation": {
12+
"group": "group-build"
13+
}
14+
},
15+
{
16+
"type": "npm",
17+
"label": "build-ts-watch",
18+
"script": "build-ts-watch",
19+
"problemMatcher": [
20+
"$tsc-watch"
21+
],
22+
"presentation": {
23+
"group": "group-build"
24+
}
25+
},
26+
{
27+
"type": "npm",
28+
"label": "build-cpp-watch",
29+
"script": "build-cpp-watch",
30+
"options": {
31+
"cwd": "${workspaceFolder}/../.."
32+
},
33+
"problemMatcher": {
34+
"owner": "cpp",
35+
"fileLocation": [
36+
"relative",
37+
"${workspaceFolder}"
38+
],
39+
"pattern": {
40+
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
41+
"file": 1,
42+
"line": 2,
43+
"column": 3,
44+
"severity": 4,
45+
"message": 5
46+
}
47+
},
48+
"presentation": {
49+
"group": "group-build"
50+
}
51+
},
52+
{
53+
"type": "npm",
54+
"label": "test-serve",
55+
"script": "test-serve",
56+
"presentation": {
57+
"group": "group-build"
58+
}
59+
},
60+
{
61+
"label": "build",
62+
"dependsOn": [
63+
"build-types-watch",
64+
"build-ts-watch",
65+
"build-cpp-watch",
66+
"test-serve"
67+
],
68+
"group": {
69+
"kind": "build",
70+
"isDefault": true
71+
}
72+
}
73+
]
74+
}

packages/duckdb/esbuild.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { browserTpl, neutralTpl, nodeTpl } from "@hpcc-js/esbuild-plugins";
33
// config ---
44
await browserTpl("src/index.ts", "dist/index");
55
await Promise.all([
6-
browserTpl("spec/index-browser.ts", "dist-test/index.browser")
6+
browserTpl("spec/index-browser.ts", "dist-test/index.browser", undefined, undefined, undefined, ["@hpcc-js/wasm-duckdb"])
77
]);
88

packages/duckdb/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"lint-skypack": "npx -y @skypack/package-check",
3333
"lint-eslint": "eslint src/**/*.ts spec/*.ts",
3434
"lint": "run-p lint-eslint",
35+
"test-serve": "jasmine-browser-runner serve",
3536
"test-browser": "jasmine-browser-runner runSpecs",
3637
"test": "run-s test-browser",
3738
"update": "npx -y npm-check-updates -u -t minor",

0 commit comments

Comments
 (0)