@schemastore/compilerconfig 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +12 -0
  3. package/index.d.ts +356 -0
  4. package/package.json +14 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Florian Imdahl. All rights reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
package/README.md ADDED
@@ -0,0 +1,12 @@
1
+ # Installation
2
+ > `npm install --save @schemastore/compilerconfig`
3
+
4
+ # Summary
5
+ This package contains type definitions for compilerconfig.
6
+
7
+ ## Details
8
+ Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/compilerconfig.
9
+
10
+ ## Additional Details
11
+ * Last updated: Wed, Apr 20, 2022, 07:13:19 GMT
12
+ * Dependencies: none
package/index.d.ts ADDED
@@ -0,0 +1,356 @@
1
+ /* tslint:disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+
8
+ export type Config =
9
+ | LessOptions
10
+ | SassOptions
11
+ | StylusOptions
12
+ | CoffeeScriptOptions
13
+ | IcedCoffeeScriptOptions
14
+ | BabelOptions
15
+ | HandlebarsOptions;
16
+ /**
17
+ * Schema for bundleconfig.json files
18
+ */
19
+ export type Compilerconfig = Config[];
20
+
21
+ export interface LessOptions {
22
+ inputFile?: {
23
+ [k: string]: unknown;
24
+ };
25
+ /**
26
+ * Specify options for the compiler.
27
+ */
28
+ options?: {
29
+ /**
30
+ * LESS only. Support for AutoPrefixer by adding a browser string. An empty string means this feature is disabled. Example: 'last 2 versions, > 5%'. See more at https://github.com/ai/browserslist.
31
+ */
32
+ autoPrefix?: string;
33
+ /**
34
+ * LESS only. CSScomb helps you sort and categorize CSS properties in your code to improve maintenance of your stylesheets. You can specify a relative path to a local .json file as well.
35
+ */
36
+ cssComb?: ("csscomb" | "zen" | "yandex" | "none") | string;
37
+ /**
38
+ * LESS only. Currently only used for the data-uri function to ensure that images aren't created that are too large for the browser to handle.
39
+ */
40
+ ieCompat?: boolean;
41
+ /**
42
+ * LESS only. Specifies which mode Less will use to process the math in your CSS.
43
+ */
44
+ math?: "always" | "parens-division" | "parens" | "strict" | "strict-legacy";
45
+ /**
46
+ * Generates a base64 encoded source map at the bottom of the output.
47
+ */
48
+ sourceMap?: boolean;
49
+ /**
50
+ * (DEPRECATED: Use 'math' instead) LESS only. Without this option on Less will try and process all maths in your CSS.
51
+ */
52
+ strictMath?: boolean;
53
+ /**
54
+ * LESS only. Without this option, less attempts to guess at the output unit when it does maths.
55
+ */
56
+ strictUnits?: boolean;
57
+ /**
58
+ * LESS only. This option allows you to re-write URL's in imported files so that the URL is always relative to the base imported file.
59
+ */
60
+ relativeUrls?: boolean;
61
+ /**
62
+ * LESS only. Allows you to add a path to every generated import and URL in your CSS. This does not affect less import statements that are processed, just ones that are left in the output css.
63
+ */
64
+ rootPath?: string;
65
+ /**
66
+ * LESS only. Base path, will be emitted in source-map as is.
67
+ */
68
+ sourceMapRoot?: string;
69
+ /**
70
+ * Scss only. This is the opposite of the rootpath option, it specifies a path which should be removed from the output paths.
71
+ */
72
+ sourceMapBasePath?: string;
73
+ [k: string]: unknown;
74
+ };
75
+ minify?: {
76
+ /**
77
+ * CSS only. If no color names are to be used, set this value to 'hex'. If a set of colors recognized by all major browser is okay to use (W3C-strict validation is not required), set this value to 'major'.
78
+ */
79
+ colorNames?: "hex" | "major" | "noSwap" | "strict";
80
+ /**
81
+ * CSS only. How to treat comments in the code. The default is 'none', which will strip all comments except 'important' comments. 'all' will leave all comments, and 'hacks' will only leave certain known comment-based hacks.
82
+ */
83
+ commentMode?: "none" | "all" | "hacks" | "important";
84
+ /**
85
+ * Forces all rules to be terminated with semicolons if set to true.
86
+ */
87
+ termSemicolons?: boolean;
88
+ [k: string]: unknown;
89
+ };
90
+ [k: string]: unknown;
91
+ }
92
+ export interface SassOptions {
93
+ inputFile?: {
94
+ [k: string]: unknown;
95
+ };
96
+ /**
97
+ * Specify options for the compiler.
98
+ */
99
+ options?: {
100
+ /**
101
+ * Scss only. Path to look for imported files
102
+ */
103
+ includePath?: string;
104
+ /**
105
+ * Scss only. Indent type for output CSS.
106
+ */
107
+ indentType?: "space" | "tab";
108
+ /**
109
+ * Scss only. Number of spaces or tabs.
110
+ */
111
+ indentWidth?: number;
112
+ /**
113
+ * Scss only. Linefeed style (cr | crlf | lf | lfcr).
114
+ */
115
+ lineFeed?: "cr" | "crlf" | "lf" | "lfcr";
116
+ /**
117
+ * Scss only. Determines the output format of the final CSS style.
118
+ */
119
+ outputStyle?: "nested" | "expanded" | "compact" | "compressed";
120
+ /**
121
+ * Scss only. Used to determine how many digits after the decimal will be allowed. For instance, if you had a decimal number of 1.23456789 and a precision of 5, the result will be 1.23457 in the final CSS.
122
+ */
123
+ precision?: number;
124
+ /**
125
+ * Scss only. This option allows you to re-write URL's to make them relative to the output file. This doesn't work for imported .scss files.
126
+ */
127
+ relativeUrls?: boolean;
128
+ /**
129
+ * Generates a base64 encoded source map at the bottom of the output.
130
+ */
131
+ sourceMap?: boolean;
132
+ /**
133
+ * Scss only. Base path, will be emitted in source-map as is.
134
+ */
135
+ sourceMapRoot?: string;
136
+ [k: string]: unknown;
137
+ };
138
+ minify?: {
139
+ /**
140
+ * CSS only. If no color names are to be used, set this value to 'hex'. If a set of colors recognized by all major browser is okay to use (W3C-strict validation is not required), set this value to 'major'.
141
+ */
142
+ colorNames?: "hex" | "major" | "noSwap" | "strict";
143
+ /**
144
+ * CSS only. How to treat comments in the code. The default is 'none', which will strip all comments except 'important' comments. 'all' will leave all comments, and 'hacks' will only leave certain known comment-based hacks.
145
+ */
146
+ commentMode?: "none" | "all" | "hacks" | "important";
147
+ /**
148
+ * Forces all rules to be terminated with semicolons if set to true.
149
+ */
150
+ termSemicolons?: boolean;
151
+ [k: string]: unknown;
152
+ };
153
+ [k: string]: unknown;
154
+ }
155
+ export interface StylusOptions {
156
+ inputFile?: {
157
+ [k: string]: unknown;
158
+ };
159
+ /**
160
+ * Specify options for the compiler.
161
+ */
162
+ options?: {
163
+ /**
164
+ * Generates a base64 encoded source map at the bottom of the output.
165
+ */
166
+ sourceMap?: boolean;
167
+ [k: string]: unknown;
168
+ };
169
+ minify?: {
170
+ /**
171
+ * CSS only. If no color names are to be used, set this value to 'hex'. If a set of colors recognized by all major browser is okay to use (W3C-strict validation is not required), set this value to 'major'.
172
+ */
173
+ colorNames?: "hex" | "major" | "noSwap" | "strict";
174
+ /**
175
+ * CSS only. How to treat comments in the code. The default is 'none', which will strip all comments except 'important' comments. 'all' will leave all comments, and 'hacks' will only leave certain known comment-based hacks.
176
+ */
177
+ commentMode?: "none" | "all" | "hacks" | "important";
178
+ /**
179
+ * Forces all rules to be terminated with semicolons if set to true.
180
+ */
181
+ termSemicolons?: boolean;
182
+ [k: string]: unknown;
183
+ };
184
+ [k: string]: unknown;
185
+ }
186
+ export interface CoffeeScriptOptions {
187
+ inputFile?: {
188
+ [k: string]: unknown;
189
+ };
190
+ /**
191
+ * Specify options for the compiler.
192
+ */
193
+ options?: {
194
+ /**
195
+ * CoffeeScript only. Compile the JavaScript without the top-level function safety wrapper.
196
+ */
197
+ bare?: boolean;
198
+ /**
199
+ * CoffeeScript only. Specify how the Iced runtime is included in the output JavaScript file.
200
+ */
201
+ runtimeMode?: "node" | "inline" | "none" | "window";
202
+ /**
203
+ * Generates a source map file.
204
+ */
205
+ sourceMap?: boolean;
206
+ [k: string]: unknown;
207
+ };
208
+ minify?: {
209
+ /**
210
+ * JavaScript only.
211
+ */
212
+ evalTreatment?: "ignore" | "makeAllSafe" | "makeImmediateSafe";
213
+ /**
214
+ * JavaScript only.
215
+ */
216
+ preserveImportantComments?: boolean;
217
+ /**
218
+ * JavaScript only. Controls if local variables should be shortened.
219
+ */
220
+ renameLocals?: boolean;
221
+ /**
222
+ * Forces all rules to be terminated with semicolons if set to true.
223
+ */
224
+ termSemicolons?: boolean;
225
+ [k: string]: unknown;
226
+ };
227
+ [k: string]: unknown;
228
+ }
229
+ export interface IcedCoffeeScriptOptions {
230
+ inputFile?: {
231
+ [k: string]: unknown;
232
+ };
233
+ /**
234
+ * Specify options for the compiler.
235
+ */
236
+ options?: {
237
+ /**
238
+ * CoffeeScript only. Compile the JavaScript without the top-level function safety wrapper.
239
+ */
240
+ bare?: boolean;
241
+ /**
242
+ * CoffeeScript only. Specify how the Iced runtime is included in the output JavaScript file.
243
+ */
244
+ runtimeMode?: "node" | "inline" | "none" | "window";
245
+ /**
246
+ * Generates a source map file.
247
+ */
248
+ sourceMap?: boolean;
249
+ [k: string]: unknown;
250
+ };
251
+ minify?: {
252
+ /**
253
+ * JavaScript only.
254
+ */
255
+ evalTreatment?: "ignore" | "makeAllSafe" | "makeImmediateSafe";
256
+ /**
257
+ * JavaScript only.
258
+ */
259
+ preserveImportantComments?: boolean;
260
+ /**
261
+ * JavaScript only. Controls if local variables should be shortened.
262
+ */
263
+ renameLocals?: boolean;
264
+ /**
265
+ * Forces all rules to be terminated with semicolons if set to true.
266
+ */
267
+ termSemicolons?: boolean;
268
+ [k: string]: unknown;
269
+ };
270
+ [k: string]: unknown;
271
+ }
272
+ export interface BabelOptions {
273
+ inputFile?: {
274
+ [k: string]: unknown;
275
+ };
276
+ minify?: {
277
+ /**
278
+ * JavaScript only.
279
+ */
280
+ evalTreatment?: "ignore" | "makeAllSafe" | "makeImmediateSafe";
281
+ /**
282
+ * JavaScript only.
283
+ */
284
+ preserveImportantComments?: boolean;
285
+ /**
286
+ * JavaScript only. Controls if local variables should be shortened.
287
+ */
288
+ renameLocals?: boolean;
289
+ /**
290
+ * Forces all rules to be terminated with semicolons if set to true.
291
+ */
292
+ termSemicolons?: boolean;
293
+ [k: string]: unknown;
294
+ };
295
+ [k: string]: unknown;
296
+ }
297
+ export interface HandlebarsOptions {
298
+ inputFile?: {
299
+ [k: string]: unknown;
300
+ };
301
+ /**
302
+ * Specify options for the compiler.
303
+ */
304
+ options?: {
305
+ enabled?: boolean;
306
+ /**
307
+ * Removes the BOM (Byte Order Mark) from the beginning of the templates.
308
+ */
309
+ noBOM?: boolean;
310
+ /**
311
+ * Template namespace
312
+ */
313
+ namespace?: string;
314
+ /**
315
+ * Template root. Base value that will be stripped from template names.
316
+ */
317
+ root?: string;
318
+ /**
319
+ * List of known helpers for a more optimized output (comma separated)
320
+ */
321
+ knownHelpers?: string;
322
+ /**
323
+ * Compile with known helpers only
324
+ */
325
+ knownHelpersOnly?: boolean;
326
+ /**
327
+ * Path to the Handlebars module to export CommonJS style
328
+ */
329
+ commonjs?: string;
330
+ /**
331
+ * Exports amd style (require.js), this option has priority to commonjs.
332
+ */
333
+ amd?: boolean;
334
+ [k: string]: unknown;
335
+ };
336
+ minify?: {
337
+ /**
338
+ * JavaScript only.
339
+ */
340
+ evalTreatment?: "ignore" | "makeAllSafe" | "makeImmediateSafe";
341
+ /**
342
+ * JavaScript only.
343
+ */
344
+ preserveImportantComments?: boolean;
345
+ /**
346
+ * JavaScript only. Controls if local variables should be shortened.
347
+ */
348
+ renameLocals?: boolean;
349
+ /**
350
+ * Forces all rules to be terminated with semicolons if set to true.
351
+ */
352
+ termSemicolons?: boolean;
353
+ [k: string]: unknown;
354
+ };
355
+ [k: string]: unknown;
356
+ }
package/package.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "author": "Florian Imdahl <git@ffflorian.de>",
3
+ "dependencies": {},
4
+ "description": "TypeScript definitions for compilerconfig.",
5
+ "license": "MIT",
6
+ "main": "index.d.ts",
7
+ "name": "@schemastore/compilerconfig",
8
+ "repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/compilerconfig",
9
+ "scripts": {},
10
+ "typesPublisherContentHash": "6a9f8c4846e25d70200c7bdae9ebb8c9c21d980184e528ee8d891442a5358853",
11
+ "types": "index.d.ts",
12
+ "version": "0.0.2",
13
+ "typeScriptVersion": "2.2"
14
+ }