Skip to content

Commit

Permalink
chore: Build with esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Skelton committed Aug 19, 2021
1 parent 993cdd0 commit c94bd42
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
7 changes: 2 additions & 5 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 5,9 @@
"tasks": [
{
"type": "npm",
"script": "ts:watch",
"problemMatcher": "$tsc-watch",
"script": "watch",
"problemMatcher": [],
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 22,13 @@
"vscode"
],
"scripts": {
"build": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"lint": "eslint .",
"theme": "ts-node ./generator/index.ts",
"theme:watch": "nodemon ./generator/index.ts",
"ts": "tsc",
"ts:watch": "yarn ts -w",
"vscode:prepublish": "yarn theme && yarn ts"
"watch": "yarn build --sourcemap --watch",
"vscode:prepublish": "yarn theme && yarn build --minify"
},
"engines": {
"vscode": "^1.42.0"
Expand Down Expand Up @@ -96,6 97,7 @@
"@types/vscode": "^1.42.0",
"@typescript-eslint/eslint-plugin": "^4.16.1",
"@typescript-eslint/parser": "^4.16.1",
"esbuild": "^0.12.21",
"eslint": "^7.21.0",
"eslint-plugin-sort": "^1.5.0",
"nodemon": "^2.0.7",
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2511,6 2511,15 @@ __metadata:
languageName: node
linkType: hard

"esbuild@npm:^0.12.21":
version: 0.12.21
resolution: "esbuild@npm:0.12.21"
bin:
esbuild: bin/esbuild
checksum: b7f4839ba9dfb2e2c2fefd96bda6d6d82cc21e494120a72e9571bf74bc13796b884b04bc216dc8aaaba7cece5ef6ea6bba4a99e00abd3c6d713d4b2ea6a5e39c
languageName: node
linkType: hard

"escalade@npm:^3.1.1":
version: 3.1.1
resolution: "escalade@npm:3.1.1"
Expand Down Expand Up @@ -5639,6 5648,7 @@ fsevents@~2.1.2:
"@types/vscode": ^1.42.0
"@typescript-eslint/eslint-plugin": ^4.16.1
"@typescript-eslint/parser": ^4.16.1
esbuild: ^0.12.21
eslint: ^7.21.0
eslint-plugin-sort: ^1.5.0
nodemon: ^2.0.7
Expand Down

0 comments on commit c94bd42

Please sign in to comment.