Skip to content

Commit

Permalink
chore(meta): upgrade pkgs, tasks, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
zachhardesty7 committed Jan 20, 2023
1 parent 9f7e3ac commit c1b339a
Show file tree
Hide file tree
Showing 5 changed files with 2,822 additions and 1,801 deletions.
7 changes: 4 additions & 3 deletions .sample.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# rename file to .env to enable logging features

DEBUG_EXTENSION=true # log actions taken
DEBUG_TESTS=true # bail after first test failure
VERBOSE_TESTS=true # log additional info
DEBUG_EXTENSION=true # log actions taken
DEBUG_EXTENSION_ENTRY=true # log actions taken
DEBUG_TESTS=true # bail after first test failure
VERBOSE_TESTS=true # log additional info
81 changes: 26 additions & 55 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,79 +9,50 @@
// REVIEW: usually does not launch vscode on Windows
// https://github.com/Microsoft/vscode/issues/55620
// https://github.com/microsoft/TypeScript/issues/32086
"name": "Run Extension w Watch",
"name": "Extension w Watch",
"type": "extensionHost",
"request": "launch",
"envFile": "${workspaceFolder}/.env",
"env": {
"DEBUG_EXTENSION_ENTRY": "true",
"DEBUG_EXTENSION": "true"
},
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "${defaultBuildTask}"
// "preLaunchTask": "NPM: watch"
"preLaunchTask": "npm: watch"
},
{
"name": "Run Extension",
"envFile": "${workspaceFolder}/.env",
"name": "Extension",
"env": {
"DEBUG_EXTENSION_ENTRY": "true",
"DEBUG_EXTENSION": "true"
},
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
// "--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": ["${workspaceFolder}/out/**/*.js"]
},
// {
// "args": [
// "-u",
// "bdd",
// "--timeout",
// "999999",
// "--colors",
// "${workspaceFolder}/out/test"
// ],
// "internalConsoleOptions": "openOnSessionStart",
// "name": "Mocha Tests",
// "program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
// "request": "launch",
// "skipFiles": ["<node_internals>/**"],
// "type": "pwa-node"
// },
{
"name": "Launch Program",
"program": "${workspaceFolder}/out/test/runTest.js",
"envFile": "${workspaceFolder}/.env",
"request": "launch",
"trace": true,
// "stopOnEntry": true,
"sourceMaps": true,
// "outFiles": ["${workspaceFolder}/out/**/*.js", "!**/node_modules/**"],
// "smartStep": true,
// "showAsyncStacks": true,
"autoAttachChildProcesses": true,
"skipFiles": ["<node_internals>/**"],
// "console": "integratedTerminal",
"preLaunchTask": "yarn compile",
"type": "pwa-node"
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "NPM: compile launch"
},
// {
// "command": "yarn test",
// "name": "Run yarn test",
// "request": "launch",
// "type": "node-terminal"
// },
{
"name": "Extension Tests",
"envFile": "${workspaceFolder}/.env",
"type": "pwa-extensionHost",
"name": "Tests exec",
// "envFile": "${workspaceFolder}/.env",
"env": {
"DEBUG_EXTENSION": "true",
"VERBOSE_TESTS": "true",
"DEBUG_TESTS": "true"
},
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"envFile": "${workspaceFolder}/.env",
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite"
],
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "yarn compile"
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
"preLaunchTask": "NPM: compile"
}
]
}
30 changes: 29 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,37 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "compile-launch",
"label": "NPM: compile launch",
"problemMatcher": "$tsc",
"presentation": {
"close": true,
"revealProblems": "onProblem",
"reveal": "never"
},
"group": {
"kind": "build"
}
},
{
"type": "npm",
"script": "compile",
"label": "NPM: compile",
"problemMatcher": "$tsc",
// "presentation": {
// "reveal": "never"
// },
"group": {
"kind": "build"
// "isDefault": true
}
},
{
"type": "npm",
"script": "watch",
// "label": "NPM: watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
Expand All @@ -26,7 +54,7 @@
"reveal": "never"
},
"group": {
"kind": "build",
"kind": "build"
// "isDefault": true
}
},
Expand Down
Loading

0 comments on commit c1b339a

Please sign in to comment.