Skip to content

Commit 4dad3c0

Browse files
committed
Update to only publish as web extension
1 parent b10fccb commit 4dad3c0

21 files changed

+608
-1011
lines changed

.vscode/launch.json

Lines changed: 9 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6,72 +6,36 @@
66
"version": "0.2.0",
77
"configurations": [
88
{
9-
"name": "Launch Extension",
10-
"type": "extensionHost",
11-
"request": "launch",
12-
"runtimeExecutable": "${execPath}",
13-
"args": [
14-
"${workspaceFolder}/src/test/fixtures",
15-
"--disable-extensions",
16-
"--extensionDevelopmentPath=${workspaceFolder}"
17-
],
18-
"stopOnEntry": false,
19-
"sourceMaps": true,
20-
"outFiles": [
21-
"${workspaceFolder}/dist/**/*.js"
22-
],
23-
"preLaunchTask": "npm: watch"
24-
},
25-
{
26-
"name": "Launch Tests",
27-
"type": "extensionHost",
28-
"request": "launch",
29-
"runtimeExecutable": "${execPath}",
30-
"args": [
31-
"--disable-extensions",
32-
"--extensionDevelopmentPath=${workspaceFolder}",
33-
"--extensionTestsPath=${workspaceFolder}/dist/test/suite/index-node"
34-
],
35-
"stopOnEntry": false,
36-
"sourceMaps": true,
37-
"outFiles": [
38-
"${workspaceFolder}/dist/**/*.js"
39-
],
40-
"preLaunchTask": "npm: watch"
41-
},
42-
{
43-
"name": "Run Web Extension in VS Code",
9+
"name": "Run Web Extension ",
4410
"type": "pwa-extensionHost",
4511
"debugWebWorkerHost": true,
4612
"request": "launch",
4713
"args": [
48-
"${workspaceFolder}/src/test/fixtures",
14+
"${workspaceFolder}/src/web/test/fixtures",
4915
"--disable-extensions",
5016
"--extensionDevelopmentPath=${workspaceFolder}",
5117
"--extensionDevelopmentKind=web"
5218
],
5319
"outFiles": [
54-
"${workspaceFolder}/dist/**/*.js"
20+
"${workspaceFolder}/dist/web/**/*.js"
5521
],
56-
"preLaunchTask": "npm: watch"
22+
"preLaunchTask": "npm: watch-web"
5723
},
5824
{
59-
"name": "Extension Tests in VS Code",
25+
"name": "Extension Tests",
6026
"type": "extensionHost",
6127
"debugWebWorkerHost": true,
6228
"request": "launch",
6329
"args": [
64-
"${workspaceFolder}/src/test/fixtures",
65-
"--disable-extensions",
30+
"${workspaceFolder}/src/web/test/fixtures",
6631
"--extensionDevelopmentPath=${workspaceFolder}",
6732
"--extensionDevelopmentKind=web",
68-
"--extensionTestsPath=${workspaceFolder}/dist/test/suite/index-web"
33+
"--extensionTestsPath=${workspaceFolder}/dist/web/test/suite/index"
6934
],
70-
"sourceMaps": true,
7135
"outFiles": [
72-
"${workspaceFolder}/dist/**/*.js"
36+
"${workspaceFolder}/dist/web/**/*.js"
7337
],
74-
"preLaunchTask": "npm: watch"
38+
"preLaunchTask": "npm: watch-web"
7539
}
7640
]
7741
}

.vscode/settings.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
3-
"files.exclude": {
4-
"out": false // set this to true to hide the "out" folder with the compiled JS files
5-
},
6-
"search.exclude": {
7-
"out": true // set this to false to include "out" folder in search results
8-
},
9-
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10-
"typescript.tsc.autoDetect": "off",
11-
"editor.codeActionsOnSave": {
12-
"source.organizeImports": true
13-
}
3+
"files.exclude": {
4+
"out": false // set this to true to hide the "out" folder with the compiled JS files
5+
},
6+
"search.exclude": {
7+
"out": true // set this to false to include "out" folder in search results
8+
},
9+
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10+
"typescript.tsc.autoDetect": "off",
11+
"editor.codeActionsOnSave": {
12+
"source.organizeImports": true
13+
}
1414
}

.vscode/tasks.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,24 @@
55
"tasks": [
66
{
77
"type": "npm",
8-
"script": "watch",
8+
"script": "compile-web",
9+
"group": {
10+
"kind": "build",
11+
"isDefault": true
12+
},
13+
"problemMatcher": [
14+
"$ts-webpack",
15+
"$tslint-webpack"
16+
]
17+
},
18+
{
19+
"type": "npm",
20+
"script": "watch-web",
921
"group": "build",
1022
"isBackground": true,
1123
"problemMatcher": [
12-
"$ts-webpack-watch"
24+
"$ts-webpack-watch",
25+
"$tslint-webpack-watch"
1326
]
1427
}
1528
]

.vscodeignore

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
.github/**
22
.vscode/**
3-
.vscode-test/**
4-
images/**
5-
dist/test/**
3+
.vscode-test-web/**
64
src/**
5+
out/**
6+
images/**
7+
!images/icon.png
8+
node_modules/**
79
.gitignore
810
vsc-extension-quickstart.md
11+
webpack.config.js
12+
.yarnrc
913
**/tsconfig.json
1014
**/.eslintrc.json
1115
**/*.map
1216
**/*.ts
13-
!images/icon.png

0 commit comments

Comments
 (0)