dependency-cruiser 10.0.2 → 10.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/bin/depcruise-fmt.js +3 -3
  2. package/bin/dependency-cruise.js +3 -3
  3. package/bin/wrap-stream-in-html.js +1 -5
  4. package/package.json +32 -55
  5. package/src/cli/defaults.js +15 -0
  6. package/src/cli/format.js +0 -1
  7. package/src/cli/index.js +1 -1
  8. package/src/cli/init-config/config.js.template.js +1 -106
  9. package/src/cli/init-config/index.js +3 -2
  10. package/src/cli/init-config/normalize-init-options.js +2 -2
  11. package/src/cli/init-config/write-config.js +3 -2
  12. package/src/cli/init-config/write-run-scripts-to-manifest.js +1 -1
  13. package/src/cli/normalize-options.js +1 -1
  14. package/src/cli/tools/wrap-stream-in-html.js +25 -20
  15. package/src/cli/validate-node-environment.js +3 -3
  16. package/src/config-utl/extract-babel-config.js +2 -3
  17. package/src/config-utl/extract-ts-config.js +5 -7
  18. package/src/enrich/derive/reachable/index.js +2 -8
  19. package/src/extract/ast-extractors/extract-typescript-deps.js +4 -7
  20. package/src/extract/ast-extractors/swc-dependency-visitor.js +14 -11
  21. package/src/extract/parse/to-swc-ast.js +3 -4
  22. package/src/extract/parse/to-typescript-ast.js +3 -4
  23. package/src/extract/transpile/babel-wrap.js +2 -2
  24. package/src/extract/transpile/coffeescript-wrap.js +5 -4
  25. package/src/extract/transpile/livescript-wrap.js +5 -5
  26. package/src/extract/transpile/meta.js +1 -1
  27. package/src/extract/transpile/svelte-wrap.js +3 -1
  28. package/src/extract/transpile/typescript-wrap.js +3 -4
  29. package/src/extract/transpile/vue-template-wrap.js +3 -1
  30. package/src/main/index.js +1 -1
  31. package/src/main/options/defaults.js +10 -0
  32. package/src/main/options/normalize.js +1 -1
  33. package/src/main/rule-set/validate.js +1 -1
  34. package/src/meta.js +18 -0
  35. package/src/report/dot/default-theme.js +145 -0
  36. package/src/report/dot/dot.template.js +1 -199
  37. package/src/report/dot/theming.js +3 -3
  38. package/src/report/error-html/error-html.template.js +1 -132
  39. package/src/report/error-html/utl.js +1 -1
  40. package/src/report/html/html.template.js +1 -118
  41. package/src/schema/README.md +2 -2
  42. package/src/schema/configuration.schema.js +441 -0
  43. package/src/schema/cruise-result.schema.js +595 -0
  44. package/src/cli/defaults.json +0 -15
  45. package/src/main/options/defaults.json +0 -10
  46. package/src/report/dot/default-theme.json +0 -145
  47. package/src/schema/configuration.schema.json +0 -697
  48. package/src/schema/cruise-result.schema.json +0 -988
@@ -1,145 +0,0 @@
1
- {
2
- "graph": {
3
- "ordering": "out",
4
- "rankdir": "LR",
5
- "splines": "true",
6
- "overlap": "false",
7
- "nodesep": "0.16",
8
- "ranksep": "0.18",
9
- "fontname": "Helvetica-bold",
10
- "fontsize": "9",
11
- "style": "rounded,bold,filled",
12
- "fillcolor": "#ffffff",
13
- "compound": "true"
14
- },
15
- "node": {
16
- "shape": "box",
17
- "style": "rounded, filled",
18
- "height": "0.2",
19
- "color": "black",
20
- "fillcolor": "#ffffcc",
21
- "fontcolor": "black",
22
- "fontname": "Helvetica",
23
- "fontsize": 9
24
- },
25
- "edge": {
26
- "arrowhead": "normal",
27
- "arrowsize": "0.6",
28
- "penwidth": "2.0",
29
- "color": "#00000033",
30
- "fontname": "Helvetica",
31
- "fontsize": "9"
32
- },
33
- "modules": [
34
- {
35
- "criteria": { "consolidated": true },
36
- "attributes": { "shape": "box3d" }
37
- },
38
- {
39
- "criteria": { "rules[0].severity": "error" },
40
- "attributes": { "fontcolor": "red", "color": "red" }
41
- },
42
- {
43
- "criteria": { "rules[0].severity": "warn" },
44
- "attributes": { "fontcolor": "orange", "color": "orange" }
45
- },
46
- {
47
- "criteria": { "rules[0].severity": "info" },
48
- "attributes": { "fontcolor": "blue", "color": "blue" }
49
- },
50
- {
51
- "criteria": { "valid": false },
52
- "attributes": { "fontcolor": "red", "color": "red" }
53
- },
54
- {
55
- "criteria": { "couldNotResolve": true },
56
- "attributes": { "color": "red", "fontcolor": "red" }
57
- },
58
- {
59
- "criteria": { "coreModule": true },
60
- "attributes": { "color": "grey", "fontcolor": "grey" }
61
- },
62
- {
63
- "criteria": { "source": "node_modules" },
64
- "attributes": { "fillcolor": "#c40b0a1a", "fontcolor": "#c40b0a" }
65
- },
66
- {
67
- "criteria": { "matchesDoNotFollow": true },
68
- "attributes": { "shape": "folder" }
69
- },
70
- {
71
- "criteria": { "orphan": true },
72
- "attributes": { "fillcolor": "#ccffcc" }
73
- },
74
- {
75
- "criteria": { "source": "\\.json$" },
76
- "attributes": { "fillcolor": "#ffee44" }
77
- },
78
- {
79
- "criteria": { "source": "\\.jsx$" },
80
- "attributes": { "fillcolor": "#ffff77" }
81
- },
82
- {
83
- "criteria": { "source": "\\.vue$" },
84
- "attributes": { "fillcolor": "#41f083" }
85
- },
86
- {
87
- "criteria": { "source": "\\.ts$" },
88
- "attributes": { "fillcolor": "#ddfeff" }
89
- },
90
- {
91
- "criteria": { "source": "\\.tsx$" },
92
- "attributes": { "fillcolor": "#bbfeff" }
93
- },
94
- {
95
- "criteria": { "source": "\\.svelte$" },
96
- "attributes": { "fillcolor": "#febbff" }
97
- },
98
- {
99
- "criteria": { "source": "(\\.coffee|\\.litcoffee|\\.coffee\\.md)$" },
100
- "attributes": { "fillcolor": "#eeccaa" }
101
- },
102
- {
103
- "criteria": { "source": "(\\.csx|\\.cjsx)$" },
104
- "attributes": { "fillcolor": "#eebb77" }
105
- },
106
- {
107
- "criteria": { "source": "\\.ls$/g" },
108
- "attributes": { "fillcolor": "pink" }
109
- }
110
- ],
111
- "dependencies": [
112
- {
113
- "criteria": { "rules[0].severity": "error" },
114
- "attributes": { "fontcolor": "red", "color": "red" }
115
- },
116
- {
117
- "criteria": { "rules[0].severity": "warn" },
118
- "attributes": { "fontcolor": "orange", "color": "orange" }
119
- },
120
- {
121
- "criteria": { "rules[0].severity": "info" },
122
- "attributes": { "fontcolor": "blue", "color": "blue" }
123
- },
124
- {
125
- "criteria": { "valid": false },
126
- "attributes": { "fontcolor": "red", "color": "red" }
127
- },
128
- {
129
- "criteria": { "circular": true },
130
- "attributes": { "arrowhead": "normalnoneodot" }
131
- },
132
- {
133
- "criteria": { "preCompilationOnly": true },
134
- "attributes": { "arrowhead": "onormal", "penwidth": "1.0" }
135
- },
136
- {
137
- "criteria": { "coreModule": true },
138
- "attributes": { "style": "dashed", "penwidth": "1.0" }
139
- },
140
- {
141
- "criteria": { "dependencyTypes[0]": "npm" },
142
- "attributes": { "penwidth": "1.0" }
143
- }
144
- ]
145
- }