Skip to content

Commit 23753a1

Browse files
committed
Integrated webpack into the build
1 parent 70ce960 commit 23753a1

13 files changed

+1797
-229
lines changed

.vscode/extensions.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
2-
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3-
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4-
5-
// List of extensions which should be recommended for users of this workspace.
2+
// See http://go.microsoft.com/fwlink/?LinkId=827846
3+
// for the documentation about the extensions.json format
64
"recommendations": [
7-
"dbaeumer.vscode-eslint"
5+
"dbaeumer.vscode-eslint",
6+
"eamodio.tsl-problem-matcher"
87
]
9-
}
8+
}

.vscode/launch.json

+27-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,35 @@
1+
// A launch configuration that compiles the extension and then opens it inside a new window
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
15
{
26
"version": "0.2.0",
3-
// List of configurations. Add new configurations or edit existing ones.
47
"configurations": [
58
{
9+
"name": "Run Extension",
610
"type": "extensionHost",
711
"request": "launch",
8-
"name": "Launch Client",
9-
"runtimeExecutable": "${execPath}",
10-
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
11-
"stopOnEntry": false,
12-
"sourceMaps": true,
13-
"outFiles": ["${workspaceRoot}/out/**/*.js"],
14-
"preLaunchTask": "npm: watch"
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"
1533
}
1634
]
17-
}
35+
}

.vscode/settings.json

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
1+
// Place your settings in this file to overwrite default and user settings.
12
{
2-
"editor.insertSpaces": false,
3-
"tslint.enable": true,
4-
"typescript.tsc.autoDetect": "off",
5-
"typescript.preferences.quoteStyle": "single"
3+
"files.exclude": {
4+
"out": false, // set this to true to hide the "out" folder with the compiled JS files
5+
"dist": false // set this to true to hide the "dist" folder with the compiled JS files
6+
},
7+
"search.exclude": {
8+
"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
10+
},
11+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
12+
"typescript.tsc.autoDetect": "off"
613
}

.vscode/tasks.json

+27-17
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,43 @@
1+
// See https://go.microsoft.com/fwlink/?LinkId=733558
2+
// for the documentation about the tasks.json format
13
{
24
"version": "2.0.0",
35
"tasks": [
46
{
57
"type": "npm",
6-
"script": "compile",
7-
"group": "build",
8+
"script": "watch",
9+
"problemMatcher": [
10+
"$ts-webpack-watch",
11+
"$tslint-webpack-watch"
12+
],
13+
"isBackground": true,
814
"presentation": {
9-
"panel": "dedicated",
10-
"reveal": "never"
15+
"reveal": "never",
16+
"group": "watchers"
1117
},
12-
"problemMatcher": [
13-
"$tsc"
14-
]
18+
"group": {
19+
"kind": "build",
20+
"isDefault": true
21+
}
1522
},
1623
{
1724
"type": "npm",
18-
"script": "watch",
25+
"script": "watch-tests",
26+
"problemMatcher": "$tsc-watch",
1927
"isBackground": true,
20-
"group": {
21-
"kind": "build",
22-
"isDefault": true
23-
},
2428
"presentation": {
25-
"panel": "dedicated",
26-
"reveal": "never"
29+
"reveal": "never",
30+
"group": "watchers"
2731
},
28-
"problemMatcher": [
29-
"$tsc-watch"
30-
]
32+
"group": "build"
33+
},
34+
{
35+
"label": "tasks: watch-tests",
36+
"dependsOn": [
37+
"npm: watch",
38+
"npm: watch-tests"
39+
],
40+
"problemMatcher": []
3141
}
3242
]
3343
}

.vscodeignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
.github/**
22
.vscode/**
33
.vscode-test/**
4+
out/**
5+
node_modules/**
46
src/**
57
.gitignore
68
.yarnrc
9+
webpack.config.js
710
vsc-extension-quickstart.md
811
**/tsconfig.json
912
**/.eslintrc.json

0 commit comments

Comments
 (0)