forked from ritwickdey/vscode-live-sass-compiler
-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
package.json
346 lines (346 loc) · 14.8 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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
{
"name": "live-sass",
"displayName": "Live Sass Compiler",
"description": "Compile Sass or Scss to CSS at realtime.",
"version": "6.1.2",
"publisher": "glenn2223",
"author": {
"name": "Glenn Marks",
"url": "https://github.com/glenn2223/"
},
"engines": {
"vscode": "^1.74.0"
},
"keywords": [
"SASS",
"SCSS",
"Compiler",
"Transpiler",
"SASS Compiler"
],
"categories": [
"Other",
"Extension Packs"
],
"galleryBanner": {
"color": "#41205f",
"theme": "dark"
},
"activationEvents": [
"workspaceContains:**/*.s[ac]ss",
"onLanguage:scss",
"onLanguage:sass"
],
"main": "./out/extension",
"contributes": {
"commands": [
{
"command": "liveSass.command.watchMySass",
"title": "Watch Sass",
"category": "Live Sass"
},
{
"command": "liveSass.command.donotWatchMySass",
"title": "Stop Watching",
"category": "Live Sass"
},
{
"command": "liveSass.command.compileCurrentSass",
"title": "Compile Current Sass File",
"category": "Live Sass"
},
{
"command": "liveSass.command.oneTimeCompileSass",
"title": "Compile Sass - Without Watch Mode",
"category": "Live Sass"
},
{
"command": "liveSass.command.openOutputWindow",
"title": "Open Live Sass Output Window",
"category": "Live Sass"
},
{
"command": "liveSass.command.createIssue",
"title": "Report an issue",
"category": "Live Sass"
},
{
"command": "liveSass.command.debugInclusion",
"title": "Check file will be included",
"category": "Live Sass"
},
{
"command": "liveSass.command.debugFileList",
"title": "Get all included files",
"category": "Live Sass"
},
{
"command": "liveSass.command.showOutputOn.trace",
"title": "Show Output On: Trace",
"category": "Live Sass"
},
{
"command": "liveSass.command.showOutputOn.debug",
"title": "Show Output On: Debug",
"category": "Live Sass"
},
{
"command": "liveSass.command.showOutputOn.information",
"title": "Show Output On: Information",
"category": "Live Sass"
},
{
"command": "liveSass.command.showOutputOn.warning",
"title": "Show Output On: Warning",
"category": "Live Sass"
},
{
"command": "liveSass.command.showOutputOn.error",
"title": "Show Output On: Error",
"category": "Live Sass"
},
{
"command": "liveSass.command.showOutputOn.none",
"title": "Show Output On: None",
"category": "Live Sass"
}
],
"configuration": {
"title": "Live Sass Compiler",
"properties": {
"liveSassCompile.settings.formats": {
"type": "array",
"default": [
{
"format": "expanded",
"extensionName": ".css",
"savePath": null,
"savePathReplacementPairs": null
}
],
"minItems": 1,
"items": {
"type": "object",
"properties": {
"format": {
"description": "Style of exported css",
"type": "string",
"enum": [
"expanded",
"compressed"
],
"default": "expanded"
},
"extensionName": {
"description": "Extension Name of exported css",
"type": "string",
"pattern": "^[^\\/\\\\]*\\.css$",
"patternErrorMessage": "Must end with `.css` and not contain `/` or `\\`",
"default": ".css"
},
"savePath": {
"description": "Set the save location of exported CSS.\n Set the relative path from Workspace Root.\n '/' stands for your workspace root. \n Example: /subfolder1/subfolder2. (NOTE: if folder does not exist, folder will be created as well).",
"type": [
"string",
"null"
],
"pattern": "^(?:\\\\|/|~/|~\\\\)(?:.*[^\\\\/]$|$)",
"patternErrorMessage": "Must start with any of:\n`/` or `\\` (for workspace root)\n`~/` or `~\\` for relative to the file being processed. Must not end with a path separator (`/` or `\\`)",
"default": null
},
"savePathReplacementPairs": {
"description": "A set of key value pairs. When a key is found in the save path it is replaced with the value. (Note: this step happens after savePath has been applied)",
"type": [
"object",
"null"
],
"default": null
},
"generateMap": {
"description": "Generate a map for this particular output. Note: `null` uses the top level setting (of the same name)",
"type": [
"boolean",
"null"
],
"default": null
}
},
"additionalProperties": false,
"required": [
"format",
"extensionName"
]
},
"description": "Set your exported CSS Styles, Formats & save location.",
"scope": "resource"
},
"liveSassCompile.settings.excludeList": {
"type": "array",
"default": [
"/**/node_modules/**",
"/.vscode/**"
],
"description": "All Sass/Scss files inside the folders will be excluded. \n\nExamples: \n'/**/node_modules/**',\n'/.vscode/**', \n'/.history/**' \n\nGlob Patterns are accepted.",
"items": {
"type": "string",
"pattern": "^[\\/].+",
"patternErrorMessage": "Must start with a path separator (`/` or `\\`)"
},
"scope": "resource"
},
"liveSassCompile.settings.includeItems": {
"type": [
"array",
"null"
],
"default": null,
"description": "This setting is useful when you only deal with a few sass files. Only these Sass files will be included.\nNOTE: There is no need to include partial sass files.",
"items": {
"type": "string",
"pattern": "^[\\/].+(?<![\\/])[.]s[a|c]ss$",
"patternErrorMessage": "Must start with a path separator (`/` or `\\`) and end with a `.sass` or `.scss`"
},
"scope": "resource"
},
"liveSassCompile.settings.partialsList": {
"type": "array",
"default": [
"/**/_*.s[ac]ss"
],
"description": "Specific glob patterns to identify partial files/folders",
"items": {
"type": "string",
"pattern": "^[\\/].+",
"patternErrorMessage": "Must start with a path separator (`/` or `\\`)"
},
"scope": "resource"
},
"liveSassCompile.settings.generateMap": {
"type": [
"boolean"
],
"default": true,
"description": "Set to `false` if you don't want a `.map` file for each compiled CSS.\nDefault is `true`",
"scope": "resource"
},
"liveSassCompile.settings.autoprefix": {
"type": [
"array",
"string",
"boolean",
"null"
],
"default": "defaults",
"description": "Automatically add vendor prefixes to unsupported CSS properties (e. g. transform -> -ms-transform). Specify what browsers to target with an array of strings (uses [Browserslist](https://github.com/ai/browserslist)). Pass `false` to turn off.",
"items": {
"type": "string"
},
"scope": "resource"
},
"liveSassCompile.settings.watchOnLaunch": {
"type": "boolean",
"default": false,
"description": "Set this to `true` if you want Live Sass Compiler to automatically start watching your .sass or .scss file when you open an applicable workspace\nDefault is `false`"
},
"liveSassCompile.settings.compileOnWatch": {
"type": "boolean",
"default": true,
"description": "Set this to `false` if you don't want all Sass files to be compiled when Live Sass Compiler starts watching."
},
"liveSassCompile.settings.showOutputWindowOn": {
"type": "string",
"enum": [
"Trace",
"Debug",
"Information",
"Warning",
"Error",
"None"
],
"default": "Information",
"description": "Set the level of logging that is recorded and shown to you.\nDefault is `Information`"
},
"liveSassCompile.settings.showOutputWindow": {
"type": [
"boolean",
"null"
],
"deprecationMessage": "Please use showOutputWindowOn instead",
"default": null,
"description": "Backwards compatible setting for those migrating from the original extension"
},
"liveSassCompile.settings.forceBaseDirectory": {
"type": [
"string",
"null"
],
"default": null,
"pattern": "^[\\/].+[^\\/]$",
"patternErrorMessage": "Must start with a path separator (`/` or `\\`) and must not end with one",
"description": "Defines a subdirectory to search from (no directory outside of this will be search)",
"scope": "resource"
},
"liveSassCompile.settings.rootIsWorkspace": {
"type": "boolean",
"default": false,
"description": "A leading slash is relative to the workspace, not the drive (e.g C://)",
"scope": "resource"
},
"liveSassCompile.settings.showAnnouncements": {
"type": "boolean",
"default": true,
"description": "Show the announcement whenever a new version is installed"
}
}
}
},
"license": "MIT",
"icon": "images/icon2.png",
"bugs": {
"url": "https://github.com/glenn2223/vscode-live-sass-compiler/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/glenn2223/vscode-live-sass-compiler.git"
},
"homepage": "https://glenn2223.github.io/vscode-live-sass-compiler/",
"scripts": {
"vscode:prepublish": "node ./src/test/clean.js out && npm run lint && npm run rollup",
"pretest": "node ./src/test/clean.js out && tsc -p ./src/tsconfig.tests.json && npm run rollup-testing",
"test": "node ./out/test/runTest.js",
"lint": "eslint -c .eslintrc.js --ext .ts ./src/",
"rollup": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
"rollup-testing": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript --testing"
},
"dependencies": {
"autoprefixer": "^10.4.20",
"fdir": "^6.4.0",
"picomatch": "^4.0.2",
"postcss": "^8.4.47",
"sass-embedded": "^1.79.4"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^28.0.0",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.0",
"@types/mocha": "^10.0.9",
"@types/node": "^17.0.45",
"@types/picomatch": "^3.0.1",
"@types/vscode": "1.74",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vscode/test-cli": "^0.0.10",
"@vscode/test-electron": "^2.4.1",
"eslint": "^8.57.1",
"mocha": "^10.7.3",
"rollup": "^4.24.0",
"tslib": "^2.7.0",
"typescript": "^5.6.3"
},
"announcement": {
"onVersion": "6.1.2",
"message": "SassCompiler v6.1.2: Bug fix and dependency bumps. Yes, there's helpful [YouTube videos](https://www.youtube.com/playlist?list=PLhdDmC4kQ8MqhX3RtLqfIwz8oaLut1m5X) too!"
}
}