Using esbuild.mjs for configuration

Added example directory with a typescript program and open it by default in the extension host - its nice to have an isolated environment where the extension can be played with. You can always open an actual project folder if you want to
This commit is contained in:
Kirill Dubovitskiy 2023-08-07 00:22:58 -07:00
parent 915199ac6a
commit 0d1963628c
4 changed files with 8 additions and 1 deletions

1
.vscode/launch.json vendored
View file

@ -34,6 +34,7 @@
"request": "launch",
"cwd": "${workspaceFolder}/extension",
"args": [
"${workspaceFolder}/extension/manual-testing-sandbox",
"--extensionDevelopmentPath=${workspaceFolder}/extension",
],
"outFiles": [

View file

@ -0,0 +1,3 @@
function mergeSortAlgorithm() {
// TODO: implement
}

View file

@ -0,0 +1,3 @@
The sole purpose of this folder is to open it when debugging the extension.
It is not used by the extension itself.
You can add more files that can be useful when manually testing the extension.

View file

@ -183,8 +183,8 @@
]
},
"scripts": {
"esbuild-base": "rm -rf ./out && node esbuild.mjs",
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "rm -rf ./out && esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"tsc": "tsc -p ./",