-
Notifications
You must be signed in to change notification settings - Fork 37
/
package.json
213 lines (213 loc) · 7.62 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
{
"name": "vscode-colorize",
"displayName": "colorize",
"description": "A vscode extension to help visualize css colors in files.",
"version": "0.11.1",
"publisher": "kamikillerto",
"license": "Apache-2.0",
"icon": "assets/logo.png",
"engines": {
"vscode": "^1.54.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": [
"*"
],
"main": "./out/src/extension",
"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"
],
"default": "background"
},
"colorize.colorized_colors": {
"$schema": "http://json-schema.org/draft-07/schema#",
"default": [
"BROWSERS_COLORS",
"HEXA",
"RGB",
"HSL"
],
"items": {
"enum": [
"BROWSERS_COLORS",
"HEXA",
"RGB",
"HSL",
"ARGB"
],
"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": "tsc -p ./",
"compile": "tsc -watch -p ./",
"lint": "eslint .",
"test": "npm run vscode:prepublish && node ./out/test/runTest.js"
},
"devDependencies": {
"@types/chai": "5.0.0",
"@types/glob": "^8.1.0",
"@types/glob-to-regexp": "^0.4.4",
"@types/mocha": "^10.0.9",
"@types/node": "^12.0.0",
"@types/vscode": "^1.54.0",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"@vscode/test-electron": "^2.4.1",
"chai": "^4.5.0",
"eslint": "^8.57.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-config-prettier": "^9.1.0",
"globby": "^14.0.2",
"mocha": "^10.7.3",
"ts-node": "^10.9.2",
"prettier": "^3.3.3",
"typescript": "^5.6.2"
},
"dependencies": {
"glob-to-regexp": "^0.4.1"
}
}