Skip to content

Commit 393aa91

Browse files
committed
chore: update webpack example
1 parent 982daf8 commit 393aa91

23 files changed

+3249
-8384
lines changed

.github/workflows/playwright.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,27 @@ jobs:
5151
name: playwright-report
5252
path: playwright-report/
5353
retention-days: 30
54+
55+
test-webpack-example:
56+
defaults:
57+
run:
58+
working-directory: ./examples/webpack
59+
timeout-minutes: 60
60+
runs-on: ubuntu-24.04
61+
steps:
62+
- uses: actions/checkout@v4
63+
- uses: actions/setup-node@v4
64+
with:
65+
node-version: lts/*
66+
- name: Install dependencies
67+
run: npm install
68+
- name: Install Playwright Browsers
69+
run: npx playwright install --with-deps
70+
- name: Run Playwright tests
71+
run: npm run test
72+
- uses: actions/upload-artifact@v4
73+
if: ${{ !cancelled() }}
74+
with:
75+
name: playwright-report
76+
path: playwright-report/
77+
retention-days: 30

examples/vite/.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
cypress/videos
2-
cypress/screenshots
1+
dist/pipelines/
2+
playwright-report/
3+
test-results/

examples/vite/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ This example demonstrates how to configure Vite/Rollup to build a project that
55
uses an [ITK-Wasm](https://wasm.itk.org/) package.
66

77
More information can be found in the [example
8-
documentation](https://docs.itk.org/projects/wasm/en/latest/typescript/distribution/esm.html).
8+
documentation](https://docs.itk.org/projects/wasm/en/latest/typescript/distribution/vite.html).
99

1010
## Run Locally
1111

1212
```
1313
npm install
14-
npm run start
14+
npm start
1515
```
1616

1717
And visit [http://localhost:8085/](http://localhost:8085/).
@@ -22,4 +22,4 @@ And visit [http://localhost:8085/](http://localhost:8085/).
2222
npm install
2323
npx playwright install --with-deps
2424
npm test
25-
```
25+
```

examples/webpack/.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
cypress/videos/
1+
dist/*.js
2+
dist/*LICENSE*
3+
dist/pipelines/
4+
playwright-report/
5+
test-results/

examples/webpack/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
itk-webpack-example
2-
===================
1+
ITK-Wasm Webpack Example
2+
========================
33

44
This example demonstrates how to configure Webpack to build a project that
5-
uses [itk-wasm](https://wasm.itk.org/).
5+
uses an [ITK-Wasm](https://wasm.itk.org/) package.
6+
67
More information can be found in the [example
7-
documentation](https://wasm.itk.org/examples/webpack.html).
8+
documentation](https://docs.itk.org/projects/wasm/en/latest/typescript/distribution/webpack.html).
89

910
## Run Locally
1011

1112
```
1213
npm install
13-
npm run start
14+
npm start
1415
```
1516

1617
And visit [http://localhost:8686/](http://localhost:8686/).
@@ -19,6 +20,6 @@ And visit [http://localhost:8686/](http://localhost:8686/).
1920

2021
```
2122
npm install
22-
npm run build
23+
npx playwright install --with-deps
2324
npm test
2425
```

examples/webpack/cypress.config.js

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

examples/webpack/cypress/e2e/load_data.cy.js

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

examples/webpack/cypress/fixtures/cow.vtk

Lines changed: 0 additions & 4245 deletions
This file was deleted.
-193 KB
Binary file not shown.

examples/webpack/cypress/plugins/index.js

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

0 commit comments

Comments
 (0)