-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
252 lines (252 loc) · 7.65 KB
/
package.json
File metadata and controls
252 lines (252 loc) · 7.65 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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
{
"name": "token-flow-vscode",
"displayName": "Token Flow - Design System",
"description": "Bridging the gap between Design and Code. Find, insert, swap and audit design tokens (SCSS · CSS · TS/JS) without leaving your editor.",
"version": "0.1.2",
"publisher": "robin-lopez",
"license": "MIT",
"icon": "media/pluginIcon.png",
"galleryBanner": {
"color": "#1E1E1E",
"theme": "dark"
},
"categories": [
"Other",
"Visualization",
"Linters"
],
"keywords": [
"design tokens",
"design system",
"scss",
"css variables",
"theming"
],
"engines": {
"vscode": "^1.85.0"
},
"main": "./out/extension.js",
"activationEvents": [
"onLanguage:scss",
"onLanguage:sass",
"onLanguage:css",
"onLanguage:less",
"onLanguage:typescript",
"onLanguage:javascript",
"onLanguage:typescriptreact",
"onLanguage:javascriptreact"
],
"contributes": {
"configuration": {
"title": "Token Flow",
"properties": {
"tokenFlow.scopes": {
"type": "array",
"default": [],
"description": "Named scopes. Each scope groups source paths under a rootPath; when the active file is inside a scope's rootPath, that scope's tokens (plus every common scope) are proposed. An empty list falls back to tokenFlow.sourcePaths as an implicit common scope.",
"items": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "User-facing label (e.g. mobile, desktop, common)."
},
"rootPath": {
"type": "string",
"default": "",
"description": "Workspace-relative folder. Empty = common scope (always active)."
},
"sourcePaths": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Files and folders containing the tokens (Source of Truth)."
},
"whitelistPaths": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Files whose variables are external/known — won't be flagged as broken refs nor proposed as hardcoded-replacement candidates."
},
"excludedPaths": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Folders/files inside the root to skip during analysis (e.g. unrelated sub-modules)."
}
}
}
},
"tokenFlow.sourcePaths": {
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Back-compat fallback for when tokenFlow.scopes is empty — treated as the source paths of an implicit common scope. New projects should prefer tokenFlow.scopes."
},
"tokenFlow.hover.enabled": {
"type": "boolean",
"default": true,
"description": "Show resolved value and per-mode variants when hovering a token reference."
},
"tokenFlow.alternatives.pickerStyle": {
"type": "string",
"enum": [
"webviewBeside",
"completion"
],
"default": "webviewBeside",
"enumDescriptions": [
"Custom webview opened in the side column — richer visuals (large swatches, real group dividers), auto-closes when focus moves back to the editor.",
"Native IntelliSense popup floating under the caret — closer to IntelliJ; color swatches via the built-in Color kind, groups conveyed via the right-aligned label description."
],
"description": "How the Alt+T 'Show Token Alternatives' picker is rendered."
}
}
},
"commands": [
{
"command": "tokenFlow.refreshIndex",
"title": "Refresh Token Index",
"category": "Token Flow",
"icon": "$(refresh)"
},
{
"command": "tokenFlow.showAllTokens",
"title": "Show All Tokens",
"category": "Token Flow"
},
{
"command": "tokenFlow.revealDeclaration",
"title": "Reveal Token Declaration",
"category": "Token Flow"
},
{
"command": "tokenFlow.showAlternatives",
"title": "Show Token Alternatives",
"category": "Token Flow"
},
{
"command": "tokenFlow.clearFilters",
"title": "Clear Library Filters",
"category": "Token Flow",
"icon": "$(clear-all)"
},
{
"command": "tokenFlow.refreshHardcoded",
"title": "Refresh Hardcoded Values",
"category": "Token Flow",
"icon": "$(refresh)"
},
{
"command": "tokenFlow.openAnalyse",
"title": "Open Analyse Dashboard",
"category": "Token Flow",
"icon": "$(graph)"
},
{
"command": "tokenFlow.openSettings",
"title": "Configure Scopes…",
"category": "Token Flow",
"icon": "$(settings-gear)"
}
],
"keybindings": [
{
"command": "tokenFlow.showAlternatives",
"key": "alt+t",
"when": "editorTextFocus && resourceLangId =~ /^(scss|sass|css|less|typescript|typescriptreact|javascript|javascriptreact|json|jsonc)$/"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "tokenFlow",
"title": "Token Flow",
"icon": "media/activity-bar.svg"
}
]
},
"views": {
"tokenFlow": [
{
"type": "webview",
"id": "tokenFlow.library",
"name": "Library",
"contextualTitle": "Token Flow",
"icon": "media/activity-bar.svg"
},
{
"type": "webview",
"id": "tokenFlow.hardcoded",
"name": "Hardcoded",
"contextualTitle": "Token Flow",
"icon": "media/activity-bar.svg"
}
]
},
"menus": {
"view/title": [
{
"command": "tokenFlow.clearFilters",
"when": "view == tokenFlow.library && tokenFlow.library.hasFilters",
"group": "navigation@1"
},
{
"command": "tokenFlow.refreshIndex",
"when": "view == tokenFlow.library",
"group": "navigation@2"
},
{
"command": "tokenFlow.openSettings",
"when": "view == tokenFlow.library",
"group": "navigation@3"
},
{
"command": "tokenFlow.refreshHardcoded",
"when": "view == tokenFlow.hardcoded",
"group": "navigation@1"
},
{
"command": "tokenFlow.openAnalyse",
"when": "view == tokenFlow.library",
"group": "navigation@0"
}
],
"commandPalette": [
{
"command": "tokenFlow.revealDeclaration",
"when": "false"
}
]
}
},
"repository": {
"type": "git",
"url": "https://github.com/robinlopez/token-flow-vscode.git"
},
"scripts": {
"vscode:prepublish": "npm run build",
"build": "node esbuild.js --production",
"watch": "node esbuild.js --watch",
"compile": "tsc -p . --noEmit && tsc -p tsconfig.webview.json --noEmit",
"package": "vsce package"
},
"devDependencies": {
"@types/node": "^20.11.0",
"@types/vscode": "^1.85.0",
"@vscode/vsce": "^3.2.0",
"esbuild": "^0.24.0",
"typescript": "^5.4.0"
}
}