The goal is to create a web component that wraps the editor and and viewer to be used by the confluence server plugin.
It looks like this.
<diagram-as-code show-editor="false">
//DSL
A.method
</diagram-as-code>
<diagram-as-code show-editor="false" diagram-type="mermaid">
//DSL
A-->B;
</diagram-as-code>
<diagram-as-code show-editor="false" diagram-type="mermaid" theme="theme1">
//DSL
A-->B;
</diagram-as-code>
The goal is to be able to be used on:
- Confluence Server (most simple case - MVP 1)
- Confluence Cloud (need to support coloring panel and mermaid)
- Web App / Chrome Extension (are we enabling coloring panel?)
- JetBrains Plugin (disable editor always, mermaid? coloring panel?)
yarn install
yarn serve
yarn build
yarn lint
- Install
live-server
withnpm install -g live-server
- Build the web component with
watch 'yarn build && cp public/demo.html dist' src
- Open the browser.
https://stackoverflow.com/questions/51346334/npm-live-server-not-auto-reloading