Skip to content

Commit cbd2f39

Browse files
authored
Merge pull request #1389 from thewtex/webpack-example-bump
chore: update webpack example
2 parents a279374 + 0763457 commit cbd2f39

26 files changed

Lines changed: 3298 additions & 8459 deletions

.github/workflows/examples.yml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
name: node-js
1414
runs-on: ubuntu-24.04
1515

16+
1617
steps:
1718
- uses: actions/checkout@v4
1819

@@ -209,33 +210,6 @@ jobs:
209210
working-directory: ./examples/inputs-outputs/typescript
210211
run: |
211212
pnpm test
212-
213-
test-webpack-example:
214-
name: webpack
215-
runs-on: ubuntu-24.04
216-
217-
steps:
218-
- uses: actions/checkout@v4
219-
220-
- name: Free Disk Space (Ubuntu)
221-
uses: jlumbroso/free-disk-space@main
222-
with:
223-
large-packages: false
224-
tool-cache: true
225-
226-
- name: Test Webpack Example on Chrome
227-
uses: cypress-io/github-action@v6
228-
with:
229-
working-directory: ./examples/webpack
230-
browser: chrome
231-
start: npm start
232-
233-
#- name: Test Webpack Example on Firefox
234-
#uses: cypress-io/github-action@v6
235-
#with:
236-
#working-directory: ./examples/webpack
237-
#browser: firefox
238-
#start: npm start
239213
test-debugging-example:
240214
name: debugging
241215
runs-on: ubuntu-24.04

.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.

0 commit comments

Comments
 (0)