Skip to content

Commit 0ba2df9

Browse files
committed
use webpack to bundle extension
1 parent 95f0cc9 commit 0ba2df9

13 files changed

+39658
-100
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ out
22
node_modules
33
.DS_Store
44
lib/Constants.ts.local
5+
dist

.vscode/launch.json

+14-10
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,27 @@
88
"runtimeExecutable": "${execPath}",
99
"stopOnEntry": false,
1010
"sourceMaps": true,
11-
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
12-
"outFiles": ["${workspaceFolder}/out/**/*.js"],
11+
"args": [
12+
"--extensionDevelopmentPath=${workspaceFolder}"
13+
],
14+
"outFiles": [
15+
"${workspaceFolder}/dist/*.js"
16+
],
1317
"preLaunchTask": "npm: watch"
1418
},
1519
{
16-
"name": "Launch Tests",
20+
"name": "Extension Tests",
1721
"type": "extensionHost",
1822
"request": "launch",
1923
"runtimeExecutable": "${execPath}",
2024
"args": [
21-
"--extensionDevelopmentPath=${workspaceRoot}",
22-
"--extensionTestsPath=${workspaceRoot}/out/test"
25+
"--extensionDevelopmentPath=${workspaceFolder}",
26+
"--extensionTestsPath=${workspaceFolder}/out/test"
2327
],
24-
"stopOnEntry": false,
25-
"sourceMaps": true,
26-
"outFiles": ["${workspaceRoot}/out/test/**/*.js"],
27-
"preLaunchTask": "npm"
28+
"outFiles": [
29+
"${workspaceFolder}/out/test/**/*.js"
30+
],
31+
"preLaunchTask": "npm: test-compile"
2832
}
2933
]
30-
}
34+
}

.vscodeignore

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
.vscode/**
22
typings/**
3-
out/test/**
43
test/**
54
**/*.ts
65
**/*.map
76
.gitignore
8-
tsconfig.json
7+
tsconfig.json
8+
node_modules
9+
out/
10+
lib/
11+
webpack.config.js

custom.d.ts

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare module "*.svg" {
2+
const content: any;
3+
export default content;
4+
}

0 commit comments

Comments
 (0)