@kubb/core 1.2.0 → 1.2.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.
- package/dist/index.cjs +235 -168
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +97 -55
- package/dist/index.js +228 -167
- package/dist/index.js.map +1 -1
- package/package.json +8 -7
- package/schema.json +95 -0
- package/schemas/config.json +0 -70
package/schemas/config.json
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"$id": "@kubb/define-config",
|
|
4
|
-
"title": "JSON schema for @kubb/core define-config",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"root": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "Root",
|
|
10
|
-
"default": "process.cwd()"
|
|
11
|
-
},
|
|
12
|
-
"input": {
|
|
13
|
-
"type": "object",
|
|
14
|
-
"description": "Input type",
|
|
15
|
-
"properties": {
|
|
16
|
-
"path": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "Your JSON schema"
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"hooks": {
|
|
23
|
-
"type": "object",
|
|
24
|
-
"description": "Hooks that can be called when a specific action is done in Kubb.",
|
|
25
|
-
"properties": {
|
|
26
|
-
"end": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"description": "Hook that will be called at the end of all executions."
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"output": {
|
|
33
|
-
"type": "object",
|
|
34
|
-
"description": "Output type",
|
|
35
|
-
"properties": {
|
|
36
|
-
"path": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"description": "Output path"
|
|
39
|
-
},
|
|
40
|
-
"clean": {
|
|
41
|
-
"type": "boolean",
|
|
42
|
-
"description": "Clean previous generated files"
|
|
43
|
-
},
|
|
44
|
-
"write": {
|
|
45
|
-
"type": "boolean",
|
|
46
|
-
"description": " Write output to the fileSystem",
|
|
47
|
-
"default": "true"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
"plugins": {
|
|
52
|
-
"type": "array",
|
|
53
|
-
"items": {
|
|
54
|
-
"type": "array",
|
|
55
|
-
"prefixItems": [
|
|
56
|
-
{
|
|
57
|
-
"type": "string"
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
"items": { "type": "object" }
|
|
61
|
-
},
|
|
62
|
-
"description": "Plugins"
|
|
63
|
-
},
|
|
64
|
-
"logLevel": {
|
|
65
|
-
"type": "string",
|
|
66
|
-
"description": "Log level",
|
|
67
|
-
"enum": ["error", "warn", "info","silent"]
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|