Skip to content

Commit e34aa2c

Browse files
committed
🏗️ Use webpack
1 parent 22f782d commit e34aa2c

18 files changed

+2089
-99
lines changed

.eslintrc.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
{
22
"root": true,
3-
"env": {
4-
"mocha": true,
5-
"node": true
6-
},
73
"parser": "@typescript-eslint/parser",
84
"parserOptions": {
9-
"project": ["./tsconfig.json"],
105
"ecmaVersion": "latest",
6+
"project": ["./tsconfig.json"],
117
"sourceType": "module"
128
},
139
"plugins": ["@typescript-eslint", "prettier"],

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
// See http://go.microsoft.com/fwlink/?LinkId=827846
33
// for the documentation about the extensions.json format
4-
"recommendations": ["dbaeumer.vscode-eslint"]
4+
"recommendations": ["dbaeumer.vscode-eslint", "amodio.tsl-problem-matcher"]
55
}

.vscode/launch.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,27 @@
99
"name": "Run Extension",
1010
"type": "extensionHost",
1111
"request": "launch",
12-
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
13-
"outFiles": ["${workspaceFolder}/out/**/*.js"],
12+
"args": [
13+
"${workspaceFolder}/src/test/suite/my_app",
14+
"--extensionDevelopmentPath=${workspaceFolder}"
15+
],
16+
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
1417
"preLaunchTask": "${defaultBuildTask}"
1518
},
1619
{
1720
"name": "Extension Tests",
1821
"type": "extensionHost",
1922
"request": "launch",
2023
"args": [
24+
"${workspaceFolder}/src/test/suite/my_app",
2125
"--extensionDevelopmentPath=${workspaceFolder}",
2226
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
2327
],
24-
"outFiles": ["${workspaceFolder}/out/test/**/*.js"],
25-
"preLaunchTask": "${defaultBuildTask}"
28+
"outFiles": [
29+
"${workspaceFolder}/out/**/*.js",
30+
"${workspaceFolder}/dist/**/*.js"
31+
],
32+
"preLaunchTask": "tasks: watch-tests"
2633
}
2734
]
2835
}

.vscode/settings.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
33
"files.exclude": {
4-
"out": false // set this to true to hide the "out" folder with the compiled JS files
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
56
},
67
"search.exclude": {
7-
"out": true // set this to false to include "out" folder in search results
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
810
},
911
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
1012
"typescript.tsc.autoDetect": "off",

.vscode/tasks.json

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,32 @@
66
{
77
"type": "npm",
88
"script": "watch",
9-
"problemMatcher": "$tsc-watch",
9+
"problemMatcher": "$ts-webpack-watch",
1010
"isBackground": true,
1111
"presentation": {
12-
"reveal": "never"
12+
"reveal": "never",
13+
"group": "watchers"
1314
},
1415
"group": {
1516
"kind": "build",
1617
"isDefault": true
1718
}
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": ["npm: watch", "npm: watch-tests"],
34+
"problemMatcher": []
1835
}
1936
]
2037
}

.vscodeignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
.github/**
12
.vscode/**
23
.vscode-test/**
4+
out/**
5+
node_modules/**
36
src/**
47
.gitignore
58
.yarnrc
9+
webpack.config.js
610
vsc-extension-quickstart.md
711
**/tsconfig.json
812
**/.eslintrc.json

LICENSE.md renamed to LICENSE

File renamed without changes.

images/logo.png

16 KB
Loading

0 commit comments

Comments
 (0)