-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(mermaid): add a new output format #151
base: master
Are you sure you want to change the base?
Conversation
Add the possibility to use mermaid syntax. See https://mermaid-js.github.io/mermaid/#/flowchart?id=flowcharts-basic-syntax ferstl#150
Thanks a lot for this PR. I‘ll review it soon. Please be patient. |
this would be a great addition since mermaid can be embedded in github and gitlab. i installed this locally to test it out, and here's the output with following cmd:
actual: flowchart TD
%% Node Definitions:
com.github.ferstl:module-1:jar["module-1"]
com.github.ferstl:module-2:zip["module-2"]
com.github.ferstl:module-3:jar["module-3"]
junit:junit:jar["junit<br/><font size=1>(test)</font>"]
org.hamcrest:hamcrest-core:jar["hamcrest-core<br/><font size=1>(test)</font>"]
com.github.ferstl:module-2:jar["module-2"]
com.mysema.querydsl:querydsl-core:jar["querydsl-core"]
com.google.guava:guava:jar["guava"]
com.google.code.findbugs:jsr305:jar["jsr305"]
com.mysema.commons:mysema-commons-lang:jar["mysema-commons-lang"]
com.infradna.tool:bridge-method-annotation:jar["bridge-method-annotation"]
%% Edge Definitions:
com.github.ferstl:module-1:jar --> com.github.ferstl:module-2:zip
com.github.ferstl:module-3:jar --> com.github.ferstl:module-1:jar
junit:junit:jar --> org.hamcrest:hamcrest-core:jar
com.github.ferstl:module-2:jar --> junit:junit:jar
com.github.ferstl:module-3:jar --> com.github.ferstl:module-2:jar
com.mysema.querydsl:querydsl-core:jar --> com.google.guava:guava:jar
com.mysema.querydsl:querydsl-core:jar --> com.google.code.findbugs:jsr305:jar
com.mysema.querydsl:querydsl-core:jar --> com.mysema.commons:mysema-commons-lang:jar
com.mysema.querydsl:querydsl-core:jar --> com.infradna.tool:bridge-method-annotation:jar
com.github.ferstl:module-3:jar --> com.mysema.querydsl:querydsl-core:jar
i see a few issues with graph based on the expectations file you added, expected: flowchart TD
%% Node Definitions:
com.github.ferstl:module-1:jar["module-1"]
commons-codec:commons-codec:jar["commons-codec"]
org.apache.commons:commons-lang3:jar["commons-lang3"]
com.github.ferstl:module-3:jar["module-3"]
com.github.ferstl:module-2:jar["module-2"]
com.google.guava:guava:jar["guava"]
com.mysema.querydsl:querydsl-core:jar["querydsl-core"]
com.google.code.findbugs:jsr305:jar["jsr305"]
com.mysema.commons:mysema-commons-lang:jar["mysema-commons-lang"]
com.infradna.tool:bridge-method-annotation:jar["bridge-method-annotation"]
%% Edge Definitions:
com.github.ferstl:module-1:jar --> commons-codec:commons-codec:jar
com.github.ferstl:module-1:jar --> org.apache.commons:commons-lang3:jar
com.github.ferstl:module-3:jar --> com.github.ferstl:module-1:jar
com.github.ferstl:module-2:jar --> com.google.guava:guava:jar
com.github.ferstl:module-3:jar --> com.github.ferstl:module-2:jar
com.mysema.querydsl:querydsl-core:jar --> com.google.code.findbugs:jsr305:jar
com.mysema.querydsl:querydsl-core:jar --> com.mysema.commons:mysema-commons-lang:jar
com.mysema.querydsl:querydsl-core:jar --> com.infradna.tool:bridge-method-annotation:jar
com.github.ferstl:module-3:jar --> com.mysema.querydsl:querydsl-core:jar
aside from the missing nodes like
|
Add the possibility to use mermaid syntax.
See https://mermaid-js.github.io/mermaid/#/flowchart?id=flowcharts-basic-syntax
#150