Skip to content

Commit d71d5ba

Browse files
committed
Bundle using Webpack
1 parent c4a234b commit d71d5ba

11 files changed

+4747
-276
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
out
22
node_modules
33
.vscode-test
4-
.DS_Store
4+
.DS_Store
5+
dist

.vscode/extensions.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["ms-vscode.vscode-typescript-tslint-plugin"]
3+
}

.vscode/launch.json

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
11
// A launch configuration that compiles the extension and then opens it inside a new window
22
{
3-
"version": "0.1.0",
4-
"configurations": [
5-
{
6-
"name": "Extension",
7-
"type": "extensionHost",
8-
"request": "launch",
9-
"runtimeExecutable": "${execPath}",
10-
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
11-
"stopOnEntry": false,
12-
"sourceMaps": true,
13-
"outFiles": [ "${workspaceRoot}/out/src/**/*.js" ],
14-
"preLaunchTask": "npm: watch"
15-
},
16-
{
17-
"name": "Extension Tests",
18-
"type": "extensionHost",
19-
"request": "launch",
20-
"runtimeExecutable": "${execPath}",
21-
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ],
22-
"stopOnEntry": false,
23-
"sourceMaps": true,
24-
"outFiles": [ "${workspaceRoot}/out/test/**/*.js" ],
25-
"preLaunchTask": "npm: watch"
26-
}
27-
]
3+
"version": "0.1.0",
4+
"configurations": [
5+
{
6+
"name": "Extension",
7+
"type": "extensionHost",
8+
"request": "launch",
9+
"runtimeExecutable": "${execPath}",
10+
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
11+
"stopOnEntry": false,
12+
"sourceMaps": true,
13+
"preLaunchTask": "npm: watch"
14+
},
15+
{
16+
"name": "Extension Tests",
17+
"type": "extensionHost",
18+
"request": "launch",
19+
"runtimeExecutable": "${execPath}",
20+
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test"],
21+
"stopOnEntry": false,
22+
"sourceMaps": true,
23+
"outFiles": ["${workspaceRoot}/out/test/**/*.js"],
24+
"preLaunchTask": "npm: watch"
25+
}
26+
]
2827
}

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
33
"files.exclude": {
4-
"out": true, // set this to true to hide the "out" folder with the compiled JS files
4+
"dist": true, // set this to true to hide the "dist" folder with the compiled JS files
55
".vscode-test": true,
66
"node_modules": true
77
},
88
"search.exclude": {
9-
"out": true // set this to false to include "out" folder in search results
9+
"dist": true // set this to false to include "dist" folder in search results
1010
},
1111
"typescript.tsdk": "./node_modules/typescript/lib",
1212
"editor.tabSize": 2, // we want to use the TS server from our node_modules folder to control its version,

.vscode/tasks.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,23 @@
66
{
77
"type": "npm",
88
"script": "watch",
9-
"problemMatcher": "$tsc-watch",
9+
"problemMatcher": {
10+
"owner": "typescript",
11+
"applyTo": "closedDocuments",
12+
"fileLocation": ["absolute"],
13+
"pattern": {
14+
"regexp": "<nothing>"
15+
},
16+
"background": {
17+
"activeOnStart": true,
18+
"beginsPattern": {
19+
"regexp": "Compilation (.*?)starting…"
20+
},
21+
"endsPattern": {
22+
"regexp": "Compilation (.*?)finished"
23+
}
24+
}
25+
},
1026
"isBackground": true,
1127
"presentation": {
1228
"reveal": "never"

.vscodeignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ src/**
77
**/*.map
88
.gitignore
99
tsconfig.json
10+
node_modules
11+
out
12+
src
13+
webpack.config.json

0 commit comments

Comments
 (0)