Skip to content

Commit 1834b07

Browse files
committed
Adds bundler webpack
We know bundle and compile our extension through webpack. The package.json has been updated accordingly so have the scripts that compile and watch the extension. The json files for the intrinsics hover have been moved to the documentation dir to make bundling easier.
1 parent 2b106fe commit 1834b07

File tree

296 files changed

+2267
-375
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+2267
-375
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
out
2+
dist
23
node_modules
34
.vscode-test
45
*.vsix

.vscode/launch.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"type": "extensionHost",
1010
"request": "launch",
1111
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
12-
"outFiles": ["${workspaceFolder}/out/src/**/*.js"],
13-
"preLaunchTask": "npm: watch-dev"
12+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
13+
"preLaunchTask": "npm: compile-dev"
1414
},
1515
{
1616
"name": "Launch Tests",
@@ -21,8 +21,8 @@
2121
"--extensionDevelopmentPath=${workspaceFolder}",
2222
"--extensionTestsPath=${workspaceFolder}/out/test"
2323
],
24-
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
25-
"preLaunchTask": "npm: pretest setup"
24+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
25+
"preLaunchTask": "npm: pretest"
2626
}
2727
]
2828
}

.vscode/tasks.json

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,23 @@
1111
},
1212
"isBackground": true,
1313
"problemMatcher": "$tsc-watch",
14-
"detail": "tsc -watch -p tsconfig.json"
14+
"detail": "webpack --mode development --watch --progress"
1515
},
1616
{
1717
"label": "npm: compile-dev",
1818
"type": "npm",
1919
"script": "compile-dev",
2020
"group": "build",
2121
"problemMatcher": "$tsc",
22-
"detail": "tsc -p tsconfig.json"
22+
"detail": "webpack --mode development"
2323
},
2424
{
2525
"label": "npm: pretest",
2626
"type": "npm",
2727
"script": "pretest",
2828
"group": "test",
2929
"problemMatcher": "$tsc",
30-
"detail": "tsc -p tsconfig.test.json"
31-
},
32-
{
33-
"label": "npm: pretest setup",
34-
"type": "shell",
35-
"dependsOn": ["npm: compile-dev", "npm: pretest"],
36-
"dependsOrder": "sequence",
37-
"group": {
38-
"kind": "test",
39-
"isDefault": true
40-
},
41-
"detail": "setup for test launch"
30+
"detail": "npm run compile-dev && tsc -p tsconfig.test.json"
4231
},
4332
{
4433
"type": "npm",

.vscodeignore

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
.vscode/**
22
.vscode-test/**
3-
out/test/**
3+
out/**
4+
node_modules/**
5+
tools/**
46
test/**
57
src/**
68
**/*.map
9+
**/*.ts
710
.gitignore
8-
tsconfig.json
11+
**/tsconfig*.json
12+
**/.eslintrc.json
13+
.husky/
14+
.github/
15+
.editorconfig
16+
.prettierrc
17+
.prettierignore
918
vsc-extension-quickstart.md
19+
CONTRIBUTING.md
20+
coverconfig.json

CHANGELOG.md

Lines changed: 1 addition & 0 deletions

README.md

Lines changed: 1 addition & 1 deletion
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)