Skip to content

Latest commit

 

History

History
44 lines (33 loc) · 1.6 KB

live-reload-dmn-loader.md

File metadata and controls

44 lines (33 loc) · 1.6 KB

How to enable live-reload on React apps inside the DMN Editor

1. Configure GWT web app on IntelliJ

IntelliJ configuration

Notice:

  • Check the Update resources on frame deactivation checkbox
  • Add the dev mode parameter -war /tmp/webapp (let's keep this special directory in mind)

2. Start the DMN Loader build watcher

  1. Go to packages/stunner-editors-dmn-loader
  2. Run DMN_LOADER__outputPath=/tmp/webapp/kogito-editors-js pnpm watch

Notice:

  • We're using DMN_LOADER__outputPath=<special directory>/kogito-editors-js

3. It works!

Now, changes that you make on the components exposed by the DMN Loader (e.g. Boxed Expressions) will be automatically picked up by the DMN Editor, so when you refresh the page, you'll see the updated code.