From 0da60130e249eace528fd12ecc7e3cea66d0d7e8 Mon Sep 17 00:00:00 2001 From: Thomas Bouffard <27200110+tbouffard@users.noreply.github.com> Date: Sun, 20 Aug 2023 08:22:25 +0200 Subject: [PATCH] feat(demo): better explain how to use the `PathResolver` demo (#61) Also - improve the design of the page: use a flexible height for the bpmn-container to better adapt to various screen resolutions - index page: move bpmn-visualization-examples live environments in the "available demos" section for consistency Development: simplify explanation about commands to start the demo while developing. --- README.md | 7 +------ package.json | 2 +- packages/demo/index.html | 10 ++++------ packages/demo/pages/path-resolver.html | 5 ++++- packages/demo/src/path-resolver.css | 7 ++++--- packages/demo/src/path-resolver.ts | 1 - 6 files changed, 14 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index be18079..5e3d121 100644 --- a/README.md +++ b/README.md @@ -55,12 +55,7 @@ This project uses [npm workspaces](https://docs.npmjs.com/cli/v9/using-npm/works Install dependencies: `npm install` -Running the demo only: -- Build the lib: `npm run build -w packages/addons` -- Run the demo: `npm run dev -w packages/demo`. The demo is accessible at http://localhost:5173/ - -Develop the lib and live update the demo -- run `npm run dev` +Develop the lib and live update the demo: run `npm start`. The demo is accessible at http://localhost:5173/ ## 📃 License diff --git a/package.json b/package.json index 613a814..d238091 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "./packages/*" ], "scripts": { - "dev": "concurrently -n lib,demo \"npm run dev -w packages/addons\" \"npm run dev -w packages/demo\"" + "start": "concurrently -n lib,demo \"npm run dev -w packages/addons\" \"npm run dev -w packages/demo\"" }, "devDependencies": { "concurrently": "~8.2.0", diff --git a/packages/demo/index.html b/packages/demo/index.html index 8a4b136..6a70ecc 100644 --- a/packages/demo/index.html +++ b/packages/demo/index.html @@ -18,12 +18,9 @@
bv-experimental-add-ons
provides new experimental features for bpmn-visualization.
-
bpmn-visualization
examples: ⏩ live environment
+
@@ -32,6 +29,7 @@ bpmn-visualization
examples and demos: ⏩ live environment