You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ function BasicExample() {
47
47
for (const {element} ofawaitdataProvider.lookup({elementTypeId})) {
48
48
model.createElement(element);
49
49
}
50
-
awaitmodel.requestLinks();
50
+
awaitmodel.requestData();
51
51
52
52
// Layout elements on canvas
53
53
awaitperformLayout({signal});
@@ -65,10 +65,19 @@ Look for more examples in the [documentation](https://reactodia.github.io/docs/c
65
65
66
66
## Development
67
67
68
+
### Build
69
+
70
+
The library uses [Vite](https://vite.dev/) for local development and to build the output bundles:
71
+
72
+
* Run `npm run start` to serve examples locally.
73
+
* Run `npm run build && npm run typings` to build the `dist` folder with output bundles and library TypeScript typings.
74
+
68
75
### Tests
69
76
70
77
The library uses [Vitest](https://vitest.dev/) as a testing framework: run `npm run test` to execute all tests.
71
78
79
+
The tests use [Vitest Browser Mode](https://vitest.dev/guide/browser/) so the following command should be executed first to download browser binaries for the [Playwright]: `npx playwright install chromium`.
80
+
72
81
See [Vitest Debugging](https://vitest.dev/guide/debugging) documentation page for an integrated debugger setup for the tests (e.g. VSCode debugger).
0 commit comments