@schemastore/compilerdefaults 0.0.4 → 0.0.6

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 +1 -1
  2. package/README.md +22 -6
  3. package/index.d.ts +53 -13
  4. package/package.json +5 -5
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Florian Keller. All rights reserved.
3
+ Copyright (c) Florian Imdahl. All rights reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,12 +1,28 @@
1
- # Installation
2
- > `npm install --save @schemastore/compilerdefaults`
1
+ # Type definitions for compilerdefaults
2
+
3
+ ## Installation
4
+
5
+ ```
6
+ npm i @schemastore/compilerdefaults
7
+ yarn add @schemastore/compilerdefaults
8
+ ```
9
+
10
+ ## Summary
3
11
 
4
- # Summary
5
12
  This package contains type definitions for compilerdefaults.
6
13
 
7
- ## Details
8
- Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/compilerdefaults.
14
+ ## Usage
15
+
16
+ ```ts
17
+ import * as compilerdefaults from '@schemastore/compilerdefaults';
18
+ ```
19
+
20
+ ## Note
21
+
22
+ The definitions were auto-generated by [schemastore-updater](https://github.com/ffflorian/schemastore-updater) using [`json-schema-to-typescript`](https://www.npmjs.com/package/json-schema-to-typescript).
9
23
 
10
24
  ## Additional Details
11
- * Last updated: Sat, Jul 04, 2020, 11:00:05 GMT
25
+
26
+ * [Schema source](https://github.com/SchemaStore/schemastore/tree/master/src/schemas/json/compilerdefaults)
27
+ * Last updated: Fri, Jun 30, 2023, 21:03:58 GMT
12
28
  * Dependencies: none
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- /* tslint:disable */
1
+ /* eslint-disable */
2
2
  /**
3
3
  * This file was automatically generated by json-schema-to-typescript.
4
4
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
@@ -8,20 +8,21 @@
8
8
  /**
9
9
  * Schema for bundleconfig.json files
10
10
  */
11
- export interface Compilerdefaults {
11
+ export interface HttpsJsonSchemastoreOrgCompilerdefaultsJson {
12
12
  compilers?: {
13
13
  less?: Less;
14
14
  sass?: Sass;
15
15
  stylus?: Stylus;
16
16
  coffeescript?: CoffeeScript;
17
- [k: string]: unknown;
17
+ handlebars?: Handlebars;
18
+ [k: string]: unknown | undefined;
18
19
  };
19
20
  minifiers?: {
20
21
  css?: BaseMinify & CssMinify;
21
22
  javascript?: BaseMinify & JavascriptMinify;
22
- [k: string]: unknown;
23
+ [k: string]: unknown | undefined;
23
24
  };
24
- [k: string]: unknown;
25
+ [k: string]: unknown | undefined;
25
26
  }
26
27
  /**
27
28
  * Specify options for the compiler.
@@ -39,12 +40,16 @@ export interface Less {
39
40
  * 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.
40
41
  */
41
42
  ieCompat?: boolean;
43
+ /**
44
+ * LESS only. Specifies which mode Less will use to process the math in your CSS.
45
+ */
46
+ math?: "always" | "parens-division" | "parens" | "strict" | "strict-legacy";
42
47
  /**
43
48
  * Generates a base64 encoded source map at the bottom of the output.
44
49
  */
45
50
  sourceMap?: boolean;
46
51
  /**
47
- * LESS only. Without this option on Less will try and process all maths in your CSS.
52
+ * (DEPRECATED: Use 'math' instead) LESS only. Without this option on Less will try and process all maths in your CSS.
48
53
  */
49
54
  strictMath?: boolean;
50
55
  /**
@@ -67,7 +72,7 @@ export interface Less {
67
72
  * Scss only. This is the opposite of the rootpath option, it specifies a path which should be removed from the output paths.
68
73
  */
69
74
  sourceMapBasePath?: string;
70
- [k: string]: unknown;
75
+ [k: string]: unknown | undefined;
71
76
  }
72
77
  /**
73
78
  * Specify options for the compiler.
@@ -109,7 +114,7 @@ export interface Sass {
109
114
  * Scss only. Base path, will be emitted in source-map as is.
110
115
  */
111
116
  sourceMapRoot?: string;
112
- [k: string]: unknown;
117
+ [k: string]: unknown | undefined;
113
118
  }
114
119
  /**
115
120
  * Specify options for the compiler.
@@ -119,7 +124,7 @@ export interface Stylus {
119
124
  * Generates a base64 encoded source map at the bottom of the output.
120
125
  */
121
126
  sourceMap?: boolean;
122
- [k: string]: unknown;
127
+ [k: string]: unknown | undefined;
123
128
  }
124
129
  /**
125
130
  * Specify options for the compiler.
@@ -137,7 +142,42 @@ export interface CoffeeScript {
137
142
  * Generates a source map file.
138
143
  */
139
144
  sourceMap?: boolean;
140
- [k: string]: unknown;
145
+ [k: string]: unknown | undefined;
146
+ }
147
+ /**
148
+ * Specify options for the compiler.
149
+ */
150
+ export interface Handlebars {
151
+ enabled?: boolean;
152
+ /**
153
+ * Removes the BOM (Byte Order Mark) from the beginning of the templates.
154
+ */
155
+ noBOM?: boolean;
156
+ /**
157
+ * Template namespace
158
+ */
159
+ namespace?: string;
160
+ /**
161
+ * Template root. Base value that will be stripped from template names.
162
+ */
163
+ root?: string;
164
+ /**
165
+ * List of known helpers for a more optimized output (comma separated)
166
+ */
167
+ knownHelpers?: string;
168
+ /**
169
+ * Compile with known helpers only
170
+ */
171
+ knownHelpersOnly?: boolean;
172
+ /**
173
+ * Path to the Handlebars module to export CommonJS style
174
+ */
175
+ commonjs?: string;
176
+ /**
177
+ * Exports amd style (require.js), this option has priority to commonjs.
178
+ */
179
+ amd?: boolean;
180
+ [k: string]: unknown | undefined;
141
181
  }
142
182
  export interface BaseMinify {
143
183
  enabled?: boolean;
@@ -153,7 +193,7 @@ export interface BaseMinify {
153
193
  * SingleLine minifies everything to a single line. MultipleLines breaks the minified code into multiple lines for easier reading.
154
194
  */
155
195
  outputMode?: "multipleLines" | "singleLine" | "none";
156
- [k: string]: unknown;
196
+ [k: string]: unknown | undefined;
157
197
  }
158
198
  export interface CssMinify {
159
199
  /**
@@ -168,7 +208,7 @@ export interface CssMinify {
168
208
  * Forces all rules to be terminated with semicolons if set to true.
169
209
  */
170
210
  termSemicolons?: boolean;
171
- [k: string]: unknown;
211
+ [k: string]: unknown | undefined;
172
212
  }
173
213
  export interface JavascriptMinify {
174
214
  /**
@@ -187,5 +227,5 @@ export interface JavascriptMinify {
187
227
  * Forces all rules to be terminated with semicolons if set to true.
188
228
  */
189
229
  termSemicolons?: boolean;
190
- [k: string]: unknown;
230
+ [k: string]: unknown | undefined;
191
231
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "author": "Florian Keller <github@floriankeller.de>",
2
+ "author": "Florian Imdahl <git@ffflorian.de>",
3
3
  "dependencies": {},
4
4
  "description": "TypeScript definitions for compilerdefaults.",
5
5
  "license": "MIT",
@@ -7,8 +7,8 @@
7
7
  "name": "@schemastore/compilerdefaults",
8
8
  "repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/compilerdefaults",
9
9
  "scripts": {},
10
- "typesPublisherContentHash": "b400c5764e21695d23dea02f2ae0033d7f7f2b754bc4b24e6c1c65f359f2be9f",
10
+ "typeScriptVersion": "2.2",
11
11
  "types": "index.d.ts",
12
- "version": "0.0.4",
13
- "typeScriptVersion": "2.2"
14
- }
12
+ "typesPublisherContentHash": "8429ff08b016460459562a5acbd81250b3ea7cf9f6b94fdda67a148ec3900cc4",
13
+ "version": "0.0.6"
14
+ }