-
Notifications
You must be signed in to change notification settings - Fork 2
/
dependencies-graph.html
34 lines (34 loc) · 1.47 KB
/
dependencies-graph.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Graph</title>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/viz.js@2.1.2-pre.1/viz.js"></script>
<script src="https://cdn.jsdelivr.net/npm/viz.js@2.1.2-pre.1/full.render.js"></script>
<script>const s = `digraph {
compound = "true"
newrank = "true"
subgraph "root" {
"[root] @slam/eslint#build" -> "[root] ___ROOT___#build"
"[root] @slam/hooks#build" -> "[root] @slam/eslint#build"
"[root] @slam/hooks#build" -> "[root] @slam/tsconfig#build"
"[root] @slam/tsconfig#build" -> "[root] ___ROOT___#build"
"[root] @slam/types#build" -> "[root] @slam/eslint#build"
"[root] @slam/types#build" -> "[root] @slam/tsconfig#build"
"[root] @slam/types#build" -> "[root] @slam/utility-types#build"
"[root] @slam/utility-types#build" -> "[root] @slam/eslint#build"
"[root] @slam/utility-types#build" -> "[root] @slam/tsconfig#build"
"[root] @slam/web#build" -> "[root] @slam/eslint#build"
"[root] @slam/web#build" -> "[root] @slam/hooks#build"
"[root] @slam/web#build" -> "[root] @slam/tsconfig#build"
"[root] @slam/web#build" -> "[root] @slam/types#build"
"[root] @slam/web#build" -> "[root] @slam/utility-types#build"
"[root] ___ROOT___#build" -> "[root] ___ROOT___"
}
}
`.replace(/\_\_\_ROOT\_\_\_/g, "Root").replace(/\[root\]/g, "");new Viz().renderSVGElement(s).then(el => document.body.appendChild(el)).catch(e => console.error(e));
</script>
</body>
</html>