-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #273 from GordonSmith/JASMINE_II
chore: Enable vscode debugging
- Loading branch information
Showing
46 changed files
with
961 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/**" | ||
], | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/**" | ||
], | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.