Skip to content

Commit 65cdd72

Browse files
committed
Replace rollup with webpack
Signed-off-by: paulober <[email protected]>
1 parent 6f99e40 commit 65cdd72

File tree

12 files changed

+1700
-1664
lines changed

12 files changed

+1700
-1664
lines changed

.vscode/launch.json

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,33 +3,33 @@
33
// Hover to view descriptions of existing attributes.
44
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
55
{
6-
"version": "0.2.0",
7-
"configurations": [
8-
{
9-
"name": "Run Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"args": [
13-
"--extensionDevelopmentPath=${workspaceFolder}"
14-
],
15-
"outFiles": [
16-
"${workspaceFolder}/dist/**/*.cjs"
17-
],
18-
"preLaunchTask": "${defaultBuildTask}"
19-
},
20-
{
21-
"name": "Extension Tests",
22-
"type": "extensionHost",
23-
"request": "launch",
24-
"args": [
25-
"--extensionDevelopmentPath=${workspaceFolder}",
26-
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
27-
],
28-
"outFiles": [
29-
"${workspaceFolder}/out/**/*.js",
30-
"${workspaceFolder}/dist/**/*.js"
31-
],
32-
"preLaunchTask": "tasks: watch-tests"
33-
}
34-
]
35-
}
6+
"version": "0.2.0",
7+
"configurations": [
8+
{
9+
"name": "Run Extension",
10+
"type": "extensionHost",
11+
"request": "launch",
12+
"args": [
13+
"--extensionDevelopmentPath=${workspaceFolder}"
14+
],
15+
"outFiles": [
16+
"${workspaceFolder}/dist/**/*.js"
17+
],
18+
"preLaunchTask": "${defaultBuildTask}"
19+
},
20+
{
21+
"name": "Extension Tests",
22+
"type": "extensionHost",
23+
"request": "launch",
24+
"args": [
25+
"--extensionDevelopmentPath=${workspaceFolder}",
26+
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
27+
],
28+
"outFiles": [
29+
"${workspaceFolder}/out/**/*.js",
30+
"${workspaceFolder}/dist/**/*.js"
31+
],
32+
"preLaunchTask": "tasks: watch-tests"
33+
}
34+
]
35+
}

.vscode/tasks.json

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
// See https://go.microsoft.com/fwlink/?LinkId=733558
22
// for the documentation about the tasks.json format
33
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"type": "npm",
8-
"script": "watch",
9-
"problemMatcher": "$rollup-ts-watch",
10-
"isBackground": true,
11-
"presentation": {
12-
"reveal": "never",
13-
"group": "watchers"
14-
},
15-
"group": {
16-
"kind": "build",
17-
"isDefault": true
18-
}
19-
},
20-
{
21-
"type": "npm",
22-
"script": "watch-tests",
23-
"problemMatcher": "$tsc-watch",
24-
"isBackground": true,
25-
"presentation": {
26-
"reveal": "never",
27-
"group": "watchers"
28-
},
29-
"group": "build"
30-
},
31-
{
32-
"label": "tasks: watch-tests",
33-
"dependsOn": [
34-
"npm: watch",
35-
"npm: watch-tests"
36-
],
37-
"problemMatcher": []
38-
}
39-
]
40-
}
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "watch",
9+
"problemMatcher": "$tsc-watch",
10+
"isBackground": true,
11+
"presentation": {
12+
"reveal": "never",
13+
"group": "watchers"
14+
},
15+
"group": {
16+
"kind": "build",
17+
"isDefault": true
18+
}
19+
},
20+
{
21+
"type": "npm",
22+
"script": "watch-tests",
23+
"problemMatcher": "$tsc-watch",
24+
"isBackground": true,
25+
"presentation": {
26+
"reveal": "never",
27+
"group": "watchers"
28+
},
29+
"group": "build"
30+
},
31+
{
32+
"label": "tasks: watch-tests",
33+
"dependsOn": [
34+
"npm: watch",
35+
"npm: watch-tests"
36+
],
37+
"problemMatcher": []
38+
}
39+
]
40+
}

.vscodeignore

Lines changed: 41 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,64 @@
1+
# ── Repo / tooling ─────────────────────────────────────────────────────────────
2+
.git/**
13
.vscode/**
24
.vscode-test/**
35
.idea/**
6+
.github/**
7+
scripts/**
8+
9+
# ── Build artifacts & dependencies (we bundle; keep prebuilds separately) ─────
410
out/**
511
node_modules/**
6-
!prebuilds
7-
patches/
12+
13+
# ── Source & TS-only artifacts (webpack emits runtime JS) ─────────────────────
814
src/**
15+
**/*.ts
16+
**/*.mts
17+
**/*.tsbuildinfo
18+
19+
# ── Project/config files not needed in the VSIX ───────────────────────────────
920
.gitignore
1021
.yarnrc
1122
*rollup.config.mjs
23+
*webpack.config.js
1224
**/tsconfig.json
1325
**/eslint.config.mjs
14-
vscodeUninstall.mjs
15-
**/*.ts
26+
azure-pipelines.yml
27+
patches/
1628

17-
.github/**
18-
scripts/**
29+
# ── Large/media not needed ────────────────────────────────────────────────────
1930
images/*.xcf
2031
images/MicroPico-Socialmedia.png
2132
images/PicoWGo-Socialmedia.png
2233

23-
# instance files
34+
# ── Misc local/CI artifacts ───────────────────────────────────────────────────
2435
connection_state.json
25-
azure-pipelines.yml
26-
27-
# other
2836
*.vsix
37+
*.zip
38+
39+
# ── Python caches (global) ────────────────────────────────────────────────────
40+
**/__pycache__/**
41+
**/*.pyc
42+
43+
# ── Exclude the source uninstaller; we ship the built one from dist ───────────
44+
vscodeUninstall.mjs
2945

30-
!dist/*.cjs
31-
!mpy_stubs/
32-
!web/
46+
# ── Re-include: runtime bundles, assets, docs, and prebuilds ──────────────────
47+
!dist/extension.js
48+
!dist/vscodeUninstall.mjs
49+
!dist/**/*.cjs
50+
!web/**
51+
!prebuilds/**
3352
!LICENSE.txt
3453
!README.md
3554
!CHANGELOG.md
3655

56+
# ── mpy_stubs: keep stubs, drop caches and wheel metadata ─────────────────────
57+
mpy_stubs/**/__pycache__/**
58+
mpy_stubs/**/*.pyc
59+
mpy_stubs/**/*.pyo
60+
mpy_stubs/**/RECORD
61+
mpy_stubs/**/WHEEL
62+
mpy_stubs/**/METADATA
63+
mpy_stubs/**/REQUESTED
64+
mpy_stubs/**/INSTALLER

0 commit comments

Comments
 (0)