Skip to content

Commit a2df6fb

Browse files
committed
chore: migrate monorepo
1 parent 6855708 commit a2df6fb

126 files changed

Lines changed: 2509 additions & 2464 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ jobs:
3535
with:
3636
name: vscode-webdriverio
3737
output: vscode-webdriverio-build.zip
38-
paths: dist
38+
paths: packages/*/dist

.github/workflows/ci-unit.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ jobs:
2525
with:
2626
node-version: ${{ matrix.node-version }}
2727

28+
- name: ⬇️ Download Build Archive
29+
uses: ./.github/workflows/actions/download-archive
30+
with:
31+
name: vscode-webdriverio
32+
path: .
33+
filename: vscode-webdriverio-build.zip
34+
2835
- name: 🧪 Run the unit test
2936
run: pnpm run test:unit
3037
shell: bash

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,5 @@ jobs:
2323

2424
unit:
2525
name: Unit
26+
needs: [build]
2627
uses: ./.github/workflows/ci-unit.yml

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ node_modules
66
*.vsix
77
coverage
88
e2e/logs
9+
**/.turbo

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pnpx lint-staged --concurrent false
1+
pnpm exec lint-staged --concurrent false

.vscode-test.mjs

Lines changed: 0 additions & 20 deletions
This file was deleted.

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"type": "extensionHost",
1111
"request": "launch",
1212
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
13-
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
13+
"outFiles": ["${workspaceFolder}/packages/vscode-webdriverio/dist/*.cjs"],
1414
"preLaunchTask": "${defaultBuildTask}"
1515
}
1616
]

.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"tasks": [
66
{
77
"label": "watch",
8-
"dependsOn": ["npm: watch:tsc", "npm: watch:esbuild"],
8+
"dependsOn": ["npm: watch:esbuild"],
99
"presentation": {
1010
"reveal": "never"
1111
},
@@ -18,7 +18,7 @@
1818
"type": "npm",
1919
"script": "watch:esbuild",
2020
"group": "build",
21-
"problemMatcher": "$esbuild-watch",
21+
"problemMatcher": ["$esbuild-watch", "$tsc"],
2222
"isBackground": true,
2323
"label": "npm: watch:esbuild",
2424
"presentation": {

CONTRIBUTION.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,23 @@ How to develop and build this extension:
2424
- Run the unit test via:
2525

2626
```bash
27+
# run the complete unit test suite
2728
$ pnpm test:unit
28-
```
2929
30-
We are using 2 testing tools `vitest` and `vscode-test-cli`. Please see the [README.md](./tests/README.md) of the unit test.
30+
# run test for a specific sub project (e.g. vscode-webdriverio)
31+
$ npx vitest ./packages/vscode-webdriverio/tests
32+
```
3133

3234
- And run the extension via press F5
35+
The build process with the watch option will be start as background process.
36+
After that the changeset will be applied soon.
3337

3438
- Get the coverage report via:
3539

3640
```bash
3741
$ pnpm coverage
3842
```
3943

40-
and see the following files.
44+
# Package structure
4145

42-
- `coverage/merge/coverage-merge.json` (JSON format)
43-
- `coverage/report/index.html` (HTML format)
46+
![Package structure](./assets/build.png 'Package structure')

assets/build.png

221 KB
Loading

0 commit comments

Comments
 (0)