-
Notifications
You must be signed in to change notification settings - Fork 38
/
package.json
230 lines (230 loc) · 8.36 KB
/
package.json
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
{
"name": "vscode-colorize",
"displayName": "colorize",
"description": "A vscode extension to help visualize css colors in files.",
"version": "0.16.0",
"publisher": "kamikillerto",
"license": "Apache-2.0",
"icon": "assets/logo.png",
"engines": {
"vscode": "^1.82.0"
},
"categories": [
"Other"
],
"keywords": [
"color",
"css",
"hexa",
"hsl",
"rgb",
"preprocessor"
],
"repository": {
"type": "git",
"url": "https://github.com/kamikillerto/vscode-colorize.git"
},
"bugs": {
"url": "https://github.com/kamikillerto/vscode-colorize/issues"
},
"homepage": "https://github.com/kamikillerto/vscode-colorize/blob/master/README.MD",
"galleryBanner": {
"theme": "light"
},
"activationEvents": [
"*"
],
"workspaces": [
"client",
"server"
],
"main": "./client/out/extension.js",
"contributes": {
"configuration": {
"title": "Colorize",
"properties": {
"colorize.languages": {
"default": [
"css",
"sass",
"scss",
"less",
"postcss",
"sss",
"stylus",
"xml",
"svg"
],
"title": "Colorize files with these languages",
"type": "array",
"markdownDescription": "Configure a list of languages that should be colorized. A list of languages can be find at https://code.visualstudio.com/docs/languages/identifiers. You can learn about languages at https://code.visualstudio.com/docs/languages/overview."
},
"colorize.include": {
"type": "array",
"markdownDescription": "Configure glob patterns for including files and folders. By default Colorize is enable for files matching one the languages defined in the `colorize.languages` config, with this config you can enable colorize for other files or folders. Read more about glob patterns [here](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options).",
"default": [
"**/*.css",
"**/*.scss",
"**/*.sass",
"**/*.less",
"**/*.styl"
],
"scope": 3,
"additionalProperties": {
"anyOf": [
{
"type": "array",
"properties": {
"when": {
"type": "string",
"pattern": "\\w*\\$\\(basename\\)\\w*",
"default": "$(basename).ext",
"description": "Additional check on the siblings of a matching file. Use $(basename) as variable for the matching file name."
}
}
}
]
}
},
"colorize.exclude": {
"type": "array",
"markdownDescription": "Configure glob patterns for excluding files and folders. Colorize will not colorized colors in these files and folders and it'll also not search for variables inside. Read more about glob patterns [here](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options).",
"default": [
"**/.git",
"**/.svn",
"**/.hg",
"**/CVS",
"**/.DS_Store",
"**/.git",
"**/node_modules",
"**/bower_components",
"**/tmp",
"**/dist",
"**/tests"
],
"scope": 3,
"additionalProperties": {
"anyOf": [
{
"type": "array",
"properties": {
"when": {
"type": "string",
"pattern": "\\w*\\$\\(basename\\)\\w*",
"default": "$(basename).ext",
"description": "Additional check on the siblings of a matching file. Use $(basename) as variable for the matching file name."
}
}
}
]
}
},
"colorize.hide_current_line_decorations": {
"title": "Hide current line decorations",
"default": true,
"type": "boolean",
"markdownDescription": "Hide colors for the current line. Set to `false` to turn it off"
},
"colorize.colorized_variables": {
"$schema": "http://json-schema.org/draft-07/schema#",
"default": [
"CSS"
],
"items": {
"enum": [
"CSS",
"SASS",
"LESS",
"STYLUS"
],
"description": "You should enter a valid extractor",
"uniqueItems": true
},
"title": "Extract these type of variables",
"type": "array",
"markdownDescription": "You can specified the type of variables that should be colorized by the extension."
},
"colorize.decoration_type": {
"title": "Type of decoration",
"type": "string",
"enum": [
"background",
"underline",
"outline",
"dot",
"square-dot"
],
"default": "background"
},
"colorize.colorized_colors": {
"$schema": "http://json-schema.org/draft-07/schema#",
"default": [
"BROWSERS_COLORS",
"HEXA",
"RGB",
"HSL",
"OKLAB",
"OKLCH"
],
"items": {
"enum": [
"BROWSERS_COLORS",
"HEXA",
"RGB",
"HSL",
"ARGB",
"OKLAB",
"OKLCH"
],
"description": "You should enter a valid extractor",
"uniqueItems": true
},
"title": "Colorize these type of color",
"type": "array",
"markdownDescription": "You can specified the type of color that should be colorized by the extension.\nAvailable colors are:\n* `HEXA`: for hexadecimal colors: `#RGB`, `#RGBA`, `#RRGGBB`, `#RRGGBBAA`, `0xRGB`, `0xRGBA`, `0xRRGGBB` or `0xRRGGBBAA`\n* `ARGB`: for argb colors: `#RGB`, `#ARGB`, `#RRGGBB` or `#AARRGGBB`\n* `RGB`: for rgb colors: `rgb(r,g,b)` or `rgba(r,g,b,a)`\n* `HSL`: for HSL colors: `hsl(h,s,l)` or `hsla(h,s,l,a)`\n* `BROWSERS_COLORS`: for native browser's colors like `white`, `red`, `blue`..."
},
"colorize.enable_search_variables": {
"title": "Enable the search for variables at opening time",
"default": true,
"type": "boolean",
"markdownDescription": "When vscode starts, Colorize fetch all files targeted by the settings `colorize.include` and `colorize.languages` but not the ones targeted by the setting `colorize.exclude`. When the fetch is done, colorize open and parse all files searching for variables. That way variables will be colorized in every files. _⚠️ this setting can slown down your editor a little at opening time, read this [issue](https://github.com/KamiKillertO/vscode-colorize/issues/174) to learn more about it._"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run clean; npm run package --workspaces --if-present",
"clean": "rimraf server/out client/out out",
"compile": "npm run compile --workspaces --if-present",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "npm run watch:esbuild --workspaces --if-present",
"watch:tsc": "npm run watch:tsc --workspaces --if-present",
"check-types": "npm run check-types --workspaces --if-present",
"package": "npm run package --workspaces --if-present",
"lint": "npm run lint --workspaces --if-present",
"test-e2e": "npm run compile-tests --workspaces --if-present && sh ./scripts/e2e.sh",
"test": "npm run test --workspaces --if-present && npm run test-e2e"
},
"devDependencies": {
"@eslint/js": "^9.15.0",
"@types/chai": "5.0.0",
"@types/mocha": "^10.0.10",
"@types/node": "^20.17.9",
"@types/vscode": "^1.82.0",
"@typescript-eslint/eslint-plugin": "^8.16.0",
"@typescript-eslint/parser": "^8.16.0",
"@vscode/test-electron": "^2.4.1",
"chai": "^4.5.0",
"esbuild": "^0.24.0",
"eslint": "^9.15.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"mocha": "^11.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.4.1",
"rimraf": "^6.0.1",
"ts-node": "^10.9.2",
"typescript": "^5.7.2",
"typescript-eslint": "^8.16.0"
}
}