forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompilerconfig.json
150 lines (137 loc) · 4.22 KB
/
compilerconfig.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
{
"$schema": "http://json-schema.org/draft-04/schema",
"description": "Schema for bundleconfig.json files",
"type": "array",
"definitions": {
"lessOptions": {
"properties": {
"inputFile": {
"pattern": "\\.less$"
},
"options": {
"$ref": "https://json.schemastore.org/compilerdefaults.json#/definitions/less"
},
"minify": {
"$ref": "https://json.schemastore.org/compilerdefaults.json#/definitions/cssMinify"
}
}
},
"sassOptions": {
"properties": {
"inputFile": {
"pattern": "\\.(scss|sass)$"
},
"options": {
"$ref": "https://json.schemastore.org/compilerdefaults.json#/definitions/sass"
},
"minify": {
"$ref": "https://json.schemastore.org/compilerdefaults.json#/definitions/cssMinify"
}
}
},
"stylusOptions": {
"properties": {
"inputFile": {
"pattern": "\\.styl$"
},
"options": {
"$ref": "https://json.schemastore.org/compilerdefaults.json#/definitions/stylus"
},
"minify": {
"$ref": "https://json.schemastore.org/compilerdefaults.json#/definitions/cssMinify"
}
}
},
"coffeeScriptOptions": {
"properties": {
"inputFile": {
"pattern": "\\.coffee$|\\.litcoffee$"
},
"options": {
"$ref": "https://json.schemastore.org/compilerdefaults.json#/definitions/coffeeScript"
},
"minify": {
"$ref": "https://json.schemastore.org/compilerdefaults.json#/definitions/javascriptMinify"
}
}
},
"icedCoffeeScriptOptions": {
"properties": {
"inputFile": {
"pattern": "\\.iced$"
},
"options": {
"$ref": "https://json.schemastore.org/compilerdefaults.json#/definitions/coffeeScript"
},
"minify": {
"$ref": "https://json.schemastore.org/compilerdefaults.json#/definitions/javascriptMinify"
}
}
},
"babelOptions": {
"properties": {
"inputFile": {
"pattern": "\\.(jsx|js|es6)$"
},
"minify": {
"$ref": "https://json.schemastore.org/compilerdefaults.json#/definitions/javascriptMinify"
}
}
},
"handlebarsOptions": {
"properties": {
"inputFile": {
"pattern": "\\.(hbs|handlebars)$"
},
"options": {
"$ref": "https://json.schemastore.org/compilerdefaults.json#/definitions/handlebars"
},
"minify": {
"$ref": "https://json.schemastore.org/compilerdefaults.json#/definitions/javascriptMinify"
}
}
},
"config": {
"required": [ "outputFile", "inputFile" ],
"properties": {
"includeInProject": {
"description": "Set to true to include the output file in the project. Doesn't work in some Visual Studio project types like ASP.NET 5 applications.",
"type": "boolean",
"default": true
},
"inputFile": {
"description": "One or more relative file names to bundle.",
"type": "string",
"format": "compiler_relativepath"
},
"minify": {
"description": "Specify options for minification of the output file.",
"type": "object",
"allOf": [ { "$ref": "https://json.schemastore.org/compilerdefaults.json#/definitions/baseMinify" } ]
},
"outputFile": {
"description": "The relative path to the desired output file name.",
"type": "string",
"minLength": 1
},
"sourceMap": {
"description": "DEPRECATED! Use 'options/sourceMap' instead.",
"type": "boolean",
"default": false
}
},
"oneOf": [
{ "$ref": "#/definitions/lessOptions" },
{ "$ref": "#/definitions/sassOptions" },
{ "$ref": "#/definitions/stylusOptions" },
{ "$ref": "#/definitions/coffeeScriptOptions" },
{ "$ref": "#/definitions/icedCoffeeScriptOptions" },
{ "$ref": "#/definitions/babelOptions" },
{ "$ref": "#/definitions/handlebarsOptions" }
]
}
},
"items": {
"$ref": "#/definitions/config"
}
}