Browse Source

Updates scripts/docs for debugging in vscode.dev

main
Eric Amodio 1 year ago
parent
commit
eedbb6e8c1
3 changed files with 13 additions and 23 deletions
  1. +11
    -20
      .vscode/tasks.json
  2. +1
    -1
      CONTRIBUTING.md
  3. +1
    -2
      package.json

+ 11
- 20
.vscode/tasks.json View File

@ -20,13 +20,18 @@
"type": "npm",
"script": "build",
"group": "build",
"problemMatcher": ["$ts-checker-webpack", "$ts-checker-eslint-webpack"]
"problemMatcher": [
"$ts-checker-webpack",
"$ts-checker-eslint-webpack"
]
},
{
"type": "npm",
"script": "lint",
"group": "build",
"problemMatcher": ["$eslint-stylish"]
"problemMatcher": [
"$eslint-stylish"
]
},
{
"type": "npm",
@ -39,7 +44,10 @@
"presentation": {
"group": "watchers"
},
"problemMatcher": ["$ts-checker-webpack-watch", "$ts-checker-eslint-webpack-watch"]
"problemMatcher": [
"$ts-checker-webpack-watch",
"$ts-checker-eslint-webpack-watch"
]
},
{
"label": "Run (local web)",
@ -55,12 +63,6 @@
},
{
"label": "Run (vscode.dev)",
"group": "test",
"dependsOn": ["npm: web:serve", "npm: web:tunnel"],
"dependsOrder": "parallel",
"problemMatcher": []
},
{
"type": "npm",
"script": "web:serve",
"group": "test",
@ -73,17 +75,6 @@
},
{
"type": "npm",
"script": "web:tunnel",
"group": "test",
"isBackground": true,
"presentation": {
"group": "web",
"reveal": "always"
},
"problemMatcher": []
},
{
"type": "npm",
"script": "watch:tests",
"group": "build",
"isBackground": true,

+ 1
- 1
CONTRIBUTING.md View File

@ -125,7 +125,7 @@ See https://code.visualstudio.com/api/extension-guides/web-extensions#test-your-
#### Using VS Code for the Web (vscode.dev)
See https://code.visualstudio.com/api/extension-guides/web-extensions#test-your-web-extension-in-on-vscode.dev
See https://code.visualstudio.com/api/extension-guides/web-extensions#test-your-web-extension-in-vscode.dev
1. Open the `vscode-gitlens` folder
2. Ensure the required [dependencies](#dependencies) are installed

+ 1
- 2
package.json View File

@ -14619,8 +14619,7 @@
"watch:tests": "concurrently \"tsc-alias -p tsconfig.test.json -w\" \"tsc -p tsconfig.test.json -w\"",
"-watch:tests": "webpack --watch -c webpack.config.test.js --mode development",
"web": "vscode-test-web --extensionDevelopmentPath=. --folder-uri=vscode-vfs://github/gitkraken/vscode-gitlens",
"web:serve": "npx serve --cors -l 5000",
"web:tunnel": "npx localtunnel -p 5000",
"web:serve": "node -e \"const p = require('path'); const h = require('os').homedir(); require('child_process').execSync(`npx serve --cors -l 5000 --ssl-cert ${p.resolve(h, 'certs/localhost.pem')} --ssl-key ${p.resolve(h, 'certs/localhost-key.pem')}`, { stdio: 'inherit' })\"",
"update-dts": "pushd \"src/@types\" && npx vscode-dts dev && popd",
"update-dts:master": "pushd \"src/@types\" && npx vscode-dts master && popd",
"update-emoji": "node ./scripts/generateEmojiShortcodeMap.mjs",

Loading…
Cancel
Save