Skip to content

Commit

Permalink
feat: webpack bundling working (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-jeffery authored Sep 27, 2023
1 parent 258bcfd commit 6381179
Show file tree
Hide file tree
Showing 24 changed files with 5,133 additions and 537 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
cache-dependency-path: ./package-lock.json
- run: npm install
- run: npm run compile
- run: xvfb-run -a npm test
- run: xvfb-run -a npm run test-node
if: runner.os == 'Linux'
- run: npm test
- run: npm run test-node
if: runner.os != 'Linux'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ out
node_modules
client/server
.vscode-test
.vscode-test-web
.DS_Store
29 changes: 27 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,36 @@
"sourceMaps": true,
"args": [
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/client/out/test/index",
"--extensionTestsPath=${workspaceRoot}/client/out/test/index.node",
"${workspaceRoot}/client/testFixture"
],
"preLaunchTask": "npm: compile"
}
},
{
"name": "Run Web Extension in VS Code",
"type": "pwa-extensionHost",
"debugWebWorkerHost": true,
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionDevelopmentKind=web"
],
"outFiles": ["${workspaceRoot}/client/out/**/*.js", "${workspaceRoot}/server/out/**/*.js"],
"preLaunchTask": "npm: watch"
},
{
"name": "Extension Tests in VS Code Web",
"type": "extensionHost",
"debugWebWorkerHost": true,
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionDevelopmentKind=web",
"--extensionTestsPath=${workspaceFolder}/client/out/test/index.browser",
"${workspaceRoot}/client/testFixture"
],
"preLaunchTask": "npm: compile"
}
],
"compounds": [
{
Expand Down
7 changes: 7 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@
"problemMatcher": [
"$tsc-watch"
]
},
{
"type": "npm",
"script": "watch",
"group": "build",
"isBackground": true,
"problemMatcher": ["$ts-webpack-watch"]
}
]
}
Loading

0 comments on commit 6381179

Please sign in to comment.