-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathpackage.json
More file actions
214 lines (214 loc) · 7.28 KB
/
package.json
File metadata and controls
214 lines (214 loc) · 7.28 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
{
"name": "calm-vscode-plugin",
"displayName": "CALM Tools",
"description": "Live-visualize CALM architecture models, validate, and generate docs.",
"version": "0.6.0",
"publisher": "FINOS",
"homepage": "https://calm.finos.org",
"repository": {
"type": "git",
"url": "https://github.com/finos/architecture-as-code.git"
},
"engines": {
"vscode": "^1.88.0"
},
"categories": [
"Programming Languages",
"Visualization"
],
"keywords": [
"calm",
"architecture-as-code",
"architecture",
"modeling",
"documentation",
"finos"
],
"icon": "media/icon.png",
"main": "dist/extension.js",
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [
{
"command": "calm.openPreview",
"title": "CALM: Open Preview"
},
{
"command": "calm.searchTreeView",
"title": "Search Model Elements",
"icon": "$(search)"
},
{
"command": "calm.clearTreeViewSearch",
"title": "Clear Search",
"icon": "$(clear-all)"
},
{
"command": "calm.createWebsite",
"title": "CALM: Create Documentation Website"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "calm",
"title": "CALM",
"icon": "media/icon.png"
}
]
},
"views": {
"calm": [
{
"id": "calmSidebar",
"name": "Model Elements",
"canSelectMany": false,
"visibility": "visible"
}
]
},
"configuration": {
"title": "CALM",
"properties": {
"calm.cli.path": {
"type": "string",
"default": "./cli",
"markdownDescription": "Path to the CALM CLI entry. If not available, the extension will fall back to internal validation."
},
"calm.files.globs": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"calm/**/*.json",
"calm/**/*.y?(a)ml"
],
"markdownDescription": "Glob patterns for CALM model files in the workspace."
},
"calm.template.globs": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"**/*.md",
"**/*.markdown",
"**/*.hbs",
"**/*.handlebars"
],
"markdownDescription": "Glob patterns for template files that may reference CALM architecture files."
},
"calm.docify.theme": {
"type": "string",
"enum": [
"light",
"dark",
"high-contrast-light",
"high-contrast-dark",
"auto"
],
"default": "auto",
"description": "Default theme for CALM diagrams."
},
"calm.preview.layout": {
"type": "string",
"enum": [
"dagre",
"elk"
],
"default": "elk",
"markdownDescription": "Mermaid layout engine for architecture diagrams. **ELK** provides better automatic layout for complex diagrams with improved edge routing."
},
"calm.urlMapping": {
"type": "string",
"description": "Path to a JSON file mapping URLs to local file paths for detailed-architecture navigation.",
"default": ""
},
"calm.schemas.additionalFolders": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"markdownDescription": "Additional folders containing CALM schemas for validation. Useful for schema developers testing local schema changes. Paths are relative to the workspace root."
}
}
},
"keybindings": [
{
"command": "calm.openPreview",
"key": "ctrl+shift+c",
"mac": "cmd+shift+c",
"when": "editorTextFocus"
}
],
"menus": {
"view/title": [
{
"command": "calm.searchTreeView",
"when": "view == calmSidebar",
"group": "navigation"
},
{
"command": "calm.clearTreeViewSearch",
"when": "view == calmSidebar",
"group": "navigation"
}
],
"editor/context": [
{
"command": "calm.openPreview",
"group": "navigation@9"
},
{
"command": "calm.createWebsite",
"group": "navigation@10"
}
]
}
},
"scripts": {
"build": "tsup",
"postbuild": "node ./scripts/copy-calm-assets.js && copyfiles \"../../calm/release/**/meta/*\" \"../../calm/draft/**/meta/*\" dist/calm/ --up 3",
"watch": "tsup --watch",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:integration:compile": "tsc -p test/integration",
"test:integration": "npm run build && npm run test:integration:compile && node ./out/integration/runTest.js",
"lint": "eslint src",
"lint-fix": "eslint src --fix",
"package": "npm run build && npx @vscode/vsce package --no-dependencies",
"vscode:prepublish": "npm run build"
},
"devDependencies": {
"@types/markdown-it": "^14.1.2",
"@types/mocha": "^10.0.6",
"@types/svg-pan-zoom": "^3.3.0",
"@types/vscode": "^1.88.0",
"@vscode/dts": "^0.4.1",
"@vscode/test-electron": "^2.3.9",
"@vscode/vsce": "^3.7.1",
"copyfiles": "^2.4.1",
"eslint-plugin-import": "^2.32.0",
"glob": "^10.3.10",
"mocha": "^10.2.0",
"tsup": "^8.4.0"
},
"dependencies": {
"@finos/calm-models": "file:../../calm-models",
"@finos/calm-shared": "file:../../shared",
"@mermaid-js/layout-elk": "^0.2.0",
"elkjs": "^0.11.0",
"jsdom": "^26.1.0",
"lodash": "^4.18.1",
"markdown-it": "^14.1.1",
"mermaid": "^11.15.0",
"svg-pan-zoom": "^3.6.2",
"yaml": "^2.8.3",
"zustand": "^5.0.8"
}
}