Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions packages/base91/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "test-browser",
"type": "msedge",
"request": "launch",
"url": "http://localhost:8888",
"webRoot": "${workspaceFolder}",
"outFiles": [
"${workspaceFolder}/**/*.js",
"${workspaceFolder}/**/*.c",
"!**/node_modules/**"
],
},
{
"name": "test-node",
"type": "node",
"request": "launch",
"runtimeArgs": [
"run-script",
"test-node"
],
"runtimeExecutable": "npm",
"skipFiles": [
"<node_internals>/**"
],
"outFiles": [
"${workspaceFolder}/**/*.js",
"${workspaceFolder}/**/*.c",
"!**/node_modules/**"
],
}
]
}
74 changes: 74 additions & 0 deletions packages/base91/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"label": "build-types-watch",
"script": "build-types-watch",
"problemMatcher": [
"$tsc-watch"
],
"presentation": {
"group": "group-build"
}
},
{
"type": "npm",
"label": "build-ts-watch",
"script": "build-ts-watch",
"problemMatcher": [
"$tsc-watch"
],
"presentation": {
"group": "group-build"
}
},
{
"type": "npm",
"label": "build-cpp-watch",
"script": "build-cpp-watch",
"options": {
"cwd": "${workspaceFolder}/../.."
},
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"presentation": {
"group": "group-build"
}
},
{
"type": "npm",
"label": "test-serve",
"script": "test-serve",
"presentation": {
"group": "group-build"
}
},
{
"label": "build",
"dependsOn": [
"build-types-watch",
"build-ts-watch",
"build-cpp-watch",
"test-serve"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
4 changes: 2 additions & 2 deletions packages/base91/esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { browserTpl, neutralTpl, nodeTpl } from "@hpcc-js/esbuild-plugins";
// config ---
await neutralTpl("src/index.ts", "dist/index");
await Promise.all([
browserTpl("spec/index-browser.ts", "dist-test/index.browser"),
nodeTpl("spec/index-node.ts", "dist-test/index.node"),
browserTpl("spec/index-browser.ts", "dist-test/index.browser", undefined, undefined, undefined, ["@hpcc-js/wasm-base91"]),
nodeTpl("spec/index-node.ts", "dist-test/index.node", undefined, undefined, undefined, ["@hpcc-js/wasm-base91"]),
]);

1 change: 1 addition & 0 deletions packages/base91/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"lint-skypack": "npx -y @skypack/package-check",
"lint-eslint": "eslint src/**/*.ts spec/*.ts",
"lint": "run-p lint-eslint",
"test-serve": "jasmine-browser-runner serve",
"test-browser": "jasmine-browser-runner runSpecs",
"test-node": "jasmine",
"test": "run-s test-node test-browser",
Expand Down
52 changes: 30 additions & 22 deletions packages/base91/spec/support/jasmine-browser.mjs
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
import pkg from "../../package.json" with {type: "json"};

export default {
srcDir: "src",
srcFiles: [
"**/*.ts"
],
specDir: "dist-test",
specFiles: [
"index.browser.js"
],
env: {
stopSpecOnExpectationFailure: false,
stopOnSpecFailure: false,
random: false
},
srcDir: "src",
srcFiles: [
"*.ts"
],
specDir: "dist-test",
specFiles: [
"*.browser.js"
],
esmFilenameExtension: ".js",
importMap: {
imports: {
[pkg.name]: "dist/index.js"
}
},
env: {
stopSpecOnExpectationFailure: false,
stopOnSpecFailure: false,
random: false
},

// For security, listen only to localhost. You can also specify a different
// hostname or IP address, or remove the property or set it to "*" to listen
// to all network interfaces.
listenAddress: "localhost",
// For security, listen only to localhost. You can also specify a different
// hostname or IP address, or remove the property or set it to "*" to listen
// to all network interfaces.
listenAddress: "localhost",

// The hostname that the browser will use to connect to the server.
hostname: "localhost",
// The hostname that the browser will use to connect to the server.
hostname: "localhost",

browser: {
name: "headlessFirefox"
}
browser: {
name: "headlessFirefox"
}
};
16 changes: 8 additions & 8 deletions packages/base91/spec/support/jasmine.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"spec_dir": "dist-test",
"spec_files": [
"index.node.js"
],
"env": {
"stopSpecOnExpectationFailure": false,
"random": false
}
"spec_dir": "dist-test",
"spec_files": [
"index.node.js"
],
"env": {
"stopSpecOnExpectationFailure": false,
"random": false
}
}
1 change: 0 additions & 1 deletion packages/base91/src-cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ set_target_properties(base91lib PROPERTIES LINK_FLAGS "${LINK_FLAGS}")
target_link_libraries(base91lib
PRIVATE unofficial::base91::base91
)

35 changes: 35 additions & 0 deletions packages/duckdb/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "test-browser",
"type": "msedge",
"request": "launch",
"url": "http://localhost:8888",
"webRoot": "${workspaceFolder}",
"outFiles": [
"${workspaceFolder}/**/*.js",
"${workspaceFolder}/**/*.c",
"!**/node_modules/**"
],
},
{
"name": "test-node",
"type": "node",
"request": "launch",
"runtimeArgs": [
"run-script",
"test-node"
],
"runtimeExecutable": "npm",
"skipFiles": [
"<node_internals>/**"
],
"outFiles": [
"${workspaceFolder}/**/*.js",
"${workspaceFolder}/**/*.c",
"!**/node_modules/**"
],
}
]
}
74 changes: 74 additions & 0 deletions packages/duckdb/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"label": "build-types-watch",
"script": "build-types-watch",
"problemMatcher": [
"$tsc-watch"
],
"presentation": {
"group": "group-build"
}
},
{
"type": "npm",
"label": "build-ts-watch",
"script": "build-ts-watch",
"problemMatcher": [
"$tsc-watch"
],
"presentation": {
"group": "group-build"
}
},
{
"type": "npm",
"label": "build-cpp-watch",
"script": "build-cpp-watch",
"options": {
"cwd": "${workspaceFolder}/../.."
},
"problemMatcher": {
"owner": "cpp",
"fileLocation": [
"relative",
"${workspaceFolder}"
],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
},
"presentation": {
"group": "group-build"
}
},
{
"type": "npm",
"label": "test-serve",
"script": "test-serve",
"presentation": {
"group": "group-build"
}
},
{
"label": "build",
"dependsOn": [
"build-types-watch",
"build-ts-watch",
"build-cpp-watch",
"test-serve"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
2 changes: 1 addition & 1 deletion packages/duckdb/esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { browserTpl, neutralTpl, nodeTpl } from "@hpcc-js/esbuild-plugins";
// config ---
await browserTpl("src/index.ts", "dist/index");
await Promise.all([
browserTpl("spec/index-browser.ts", "dist-test/index.browser")
browserTpl("spec/index-browser.ts", "dist-test/index.browser", undefined, undefined, undefined, ["@hpcc-js/wasm-duckdb"])
]);

1 change: 1 addition & 0 deletions packages/duckdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"lint-skypack": "npx -y @skypack/package-check",
"lint-eslint": "eslint src/**/*.ts spec/*.ts",
"lint": "run-p lint-eslint",
"test-serve": "jasmine-browser-runner serve",
"test-browser": "jasmine-browser-runner runSpecs",
"test": "run-s test-browser",
"update": "npx -y npm-check-updates -u -t minor",
Expand Down
Loading