Skip to content

Commit

Permalink
testing esbuild bundle setup
Browse files Browse the repository at this point in the history
  • Loading branch information
lucsomers101 committed Jan 30, 2024
1 parent 55e7114 commit 691a435
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ npm install
npm install --global @vscode/vsce
npm install --global typescript
npm install @types/node
npm i --global esbuild

git restore .

npm run esbuild
vsce package 0.0.0
code --install-extension language-ampersand-0.0.0.vsix
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,15 @@
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"vscode:prepublish": "npm run esbuild-base -- --minify",
"compile": "tsc -p ./",
"test-compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"package": "vsce package",
"publish": "vsce publish"
"publish": "vsce publish",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch"
},
"dependencies": {
"@types/node": "ts5.1",
Expand Down

0 comments on commit 691a435

Please sign in to comment.