Skip to content

Commit cc71945

Browse files
committed
Bundling extension using ESBuild
1 parent 97bed51 commit cc71945

File tree

10 files changed

+1251
-21
lines changed

10 files changed

+1251
-21
lines changed

.vscode/extensions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// for the documentation about the extensions.json format
44
"recommendations": [
55
"rvest.vs-code-prettier-eslint",
6-
"esbenp.prettier-vscode"
6+
"esbenp.prettier-vscode",
7+
"connor4312.esbuild-problem-matchers"
78
]
89
}

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"request": "launch",
1212
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
1313
"outFiles": ["${workspaceFolder}/out/**/*.js"],
14-
"preLaunchTask": "${defaultBuildTask}"
14+
"preLaunchTask": "watch"
1515
}
1616
]
1717
}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"*.tsx": "${capture}.ts",
1919
"*.config.mjs": "${capture}.config.mjs",
2020
"tsconfig.json": "tsconfig.*.json",
21-
"package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb, bun.lock, .gitignore, .npmrc, .vscodeignore, tsconfig.*.json, *.config.mjs"
21+
"package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb, bun.lock, .gitignore, .npmrc, .vscodeignore, tsconfig.*.json, *.config.mjs, esbuild.mjs"
2222
}
2323
}

.vscode/tasks.json

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,39 @@
44
"version": "2.0.0",
55
"tasks": [
66
{
7-
"type": "npm",
8-
"script": "watch",
9-
"problemMatcher": "$tsc-watch",
10-
"isBackground": true,
7+
"label": "watch",
8+
"dependsOn": ["npm: watch:tsc", "npm: watch:esbuild"],
119
"presentation": {
1210
"reveal": "never"
1311
},
1412
"group": {
1513
"kind": "build",
1614
"isDefault": true
1715
}
16+
},
17+
{
18+
"type": "npm",
19+
"script": "watch:esbuild",
20+
"group": "build",
21+
"problemMatcher": "$esbuild-watch",
22+
"isBackground": true,
23+
"label": "npm: watch:esbuild",
24+
"presentation": {
25+
"group": "watch",
26+
"reveal": "never"
27+
}
28+
},
29+
{
30+
"type": "npm",
31+
"script": "watch:tsc",
32+
"group": "build",
33+
"problemMatcher": "$tsc-watch",
34+
"isBackground": true,
35+
"label": "npm: watch:tsc",
36+
"presentation": {
37+
"group": "watch",
38+
"reveal": "never"
39+
}
1840
}
1941
]
2042
}

.vscodeignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
.github/**
12
.vscode/**
23
.vscode-test/**
34
src/**
5+
node_modules/**
46
.gitignore
57
.yarnrc
6-
vsc-extension-quickstart.md
78
**/tsconfig.json
89
**/eslint.config.mjs
910
**/prettier.config.mjs
1011
**/*.map
1112
**/*.ts
12-
**/.vscode-test.*
13+
**/.vscode-test.*

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Change Log
22

3-
All notable changes to the "clazy" extension will be documented in this file.
3+
All notable changes to this project will be documented in this file.
44

5-
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
67

7-
## [Unreleased]
8+
## v1.0.0
89

910
- Initial release

0 commit comments

Comments
 (0)