0.1.34 • Published 2 years ago

diagram-as-code.js v0.1.34

Weekly downloads
98
License
MIT
Repository
github
Last release
2 years ago

diagram-as-code

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.

MVP 1 - ZenUML only

<diagram-as-code show-editor="false">
//DSL
A.method
</diagram-as-code>

MVP 2 - ZenUML + Mermaid

<diagram-as-code show-editor="false" diagram-type="mermaid">
//DSL
A-->B;
</diagram-as-code>

MVP 3 - ZenUML + Mermaid + Theme

<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: 1. Confluence Server (most simple case - MVP 1) 2. Confluence Cloud (need to support coloring panel and mermaid) 3. Web App / Chrome Extension (are we enabling coloring panel?) 4. JetBrains Plugin (disable editor always, mermaid? coloring panel?)

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Test the web component locally

  1. Install live-server with npm install -g live-server
  2. Build the web component with watch 'yarn build && cp public/demo.html dist' src
  3. Open the browser.

Trouble-shooting

https://stackoverflow.com/questions/51346334/npm-live-server-not-auto-reloading

Customize configuration

See Configuration Reference.

0.1.34

2 years ago

0.1.33

3 years ago

0.1.32

3 years ago

0.1.31

3 years ago

0.1.30

3 years ago

0.1.29

3 years ago

0.1.28

3 years ago

0.1.27

3 years ago

0.1.26

3 years ago

0.1.25

3 years ago

0.1.24

3 years ago

0.1.22

3 years ago

0.1.23

3 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.16

3 years ago

0.1.15

4 years ago

0.1.14

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.8

4 years ago

0.1.9

4 years ago

0.1.7

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago