@harperfast/harper 5.0.4 → 5.0.5

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.
@@ -0,0 +1,77 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft-06/schema",
3
+ "$id": "https://harper.fast/schema/config.schema.json",
4
+ "type": "object",
5
+ "properties": {
6
+ "rest": {
7
+ "type": "boolean",
8
+ "description": "Enable REST API endpoints."
9
+ },
10
+ "graphqlSchema": {
11
+ "type": "object",
12
+ "description": "GraphQL schema configuration.",
13
+ "additionalProperties": false,
14
+ "properties": {
15
+ "files": {
16
+ "description": "Glob(s) or path(s) to GraphQL schema files.",
17
+ "oneOf": [
18
+ {
19
+ "type": "string"
20
+ },
21
+ {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string"
25
+ }
26
+ }
27
+ ]
28
+ }
29
+ },
30
+ "required": ["files"]
31
+ },
32
+ "jsResource": {
33
+ "type": "object",
34
+ "description": "JavaScript resource(s) configuration.",
35
+ "additionalProperties": false,
36
+ "properties": {
37
+ "files": {
38
+ "description": "Path(s) to JS resource file(s).",
39
+ "oneOf": [
40
+ {
41
+ "type": "string"
42
+ },
43
+ {
44
+ "type": "array",
45
+ "items": {
46
+ "type": "string"
47
+ }
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ "required": ["files"]
53
+ },
54
+ "package": {
55
+ "type": "string",
56
+ "description": "Package identifier for the application (npm-compatible or git URL)."
57
+ },
58
+ "loadComponent": {
59
+ "type": "string",
60
+ "description": "Conditional package loading option.",
61
+ "enum": ["always", "if-installed", "dev-only"],
62
+ "default": "always"
63
+ }
64
+ },
65
+ "additionalProperties": true,
66
+ "examples": [
67
+ {
68
+ "rest": true,
69
+ "graphqlSchema": {
70
+ "files": "*.graphql"
71
+ },
72
+ "jsResource": {
73
+ "files": "resources.js"
74
+ }
75
+ }
76
+ ]
77
+ }