@adobe/aio-cli-plugin-app 10.2.0 → 10.2.1

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/README.md CHANGED
@@ -71,7 +71,7 @@ DESCRIPTION
71
71
  Create, run, test, and deploy Adobe I/O Apps
72
72
  ```
73
73
 
74
- _See code: [src/commands/app/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/10.2.0/src/commands/app/index.js)_
74
+ _See code: [src/commands/app/index.js](https://github.com/adobe/aio-cli-plugin-app/blob/10.2.1/src/commands/app/index.js)_
75
75
 
76
76
  ## `aio app add`
77
77
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "10.2.0",
2
+ "version": "10.2.1",
3
3
  "commands": {
4
4
  "app:build": {
5
5
  "id": "app:build",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adobe/aio-cli-plugin-app",
3
3
  "description": "Create, Build and Deploy Adobe I/O Applications",
4
- "version": "10.2.0",
4
+ "version": "10.2.1",
5
5
  "author": "Adobe Inc.",
6
6
  "bugs": "https://github.com/adobe/aio-cli-plugin-app/issues",
7
7
  "dependencies": {
@@ -77,7 +77,7 @@
77
77
  "bin/openwhisk-standalone-config/",
78
78
  "oclif.manifest.json",
79
79
  "src",
80
- "schema/config.schema.json"
80
+ "schema"
81
81
  ],
82
82
  "homepage": "https://github.com/adobe/aio-cli-plugin-app",
83
83
  "keywords": [
@@ -0,0 +1,157 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://adobe.io/schemas/app-builder/app.config.yaml.json/v1",
4
+ "type": "object",
5
+ "properties": {
6
+ "application": { "$ref": "#/definitions/application" },
7
+ "extensions": { "$ref": "#/definitions/extensions" }
8
+ },
9
+ "oneOf": [
10
+ {
11
+ "required": ["application"],
12
+ "allOf": [
13
+ { "not": { "required": ["extensions"] } }
14
+ ]
15
+ },
16
+ {
17
+ "required": ["extensions"],
18
+ "allOf": [
19
+ { "not": { "required": ["application"] } }
20
+ ]
21
+ }
22
+ ],
23
+ "definitions": {
24
+ "application": {
25
+ "type": "object",
26
+ "properties": {
27
+ "runtimeManifest": { "$ref": "#/definitions/runtimeManifest" },
28
+ "actions": { "type": "string" },
29
+ "unitTest": { "type": "string" },
30
+ "e2eTest": { "type": "string" },
31
+ "dist": { "type": "string" },
32
+ "tvmurl": { "type": "string" },
33
+ "awsaccesskeyid": { "type": "string" },
34
+ "awssecretaccesskey": { "type": "string" },
35
+ "s3bucket": { "type": "string" },
36
+ "events": { "type": "object" },
37
+ "hostname": { "type": "string" },
38
+ "htmlcacheduration": { "type": "number" },
39
+ "jscacheduration": { "type": "number" },
40
+ "csscacheduration": { "type": "number" },
41
+ "imagecacheduration": { "type": "number" },
42
+ "hooks": { "$ref": "#/definitions/hooks" },
43
+ "web": { "$ref": "#/definitions/web" }
44
+ },
45
+ "required": ["runtimeManifest"]
46
+ },
47
+ "extensions": {
48
+ "type": "object",
49
+ "patternProperties": {
50
+ "^[A-Za-z0-9-_/\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff]{1,20}$": {
51
+ "$ref": "#/definitions/extension"
52
+ }
53
+ },
54
+ "additionalProperties": false
55
+ },
56
+ "extension": {
57
+ "type": "object",
58
+ "properties": {
59
+ "$include": { "type": "string" }
60
+ }
61
+ },
62
+ "web": {
63
+ "anyOf": [
64
+ {
65
+ "type": "string"
66
+ },
67
+ {
68
+ "type": "object",
69
+ "properties": {
70
+ "response-headers": { "type": "object" }
71
+ }
72
+ }
73
+ ]
74
+ },
75
+ "runtimeManifest": {
76
+ "type": "object",
77
+ "properties": {
78
+ "packages": { "$ref": "#/definitions/packages" }
79
+ },
80
+ "required": ["packages"]
81
+ },
82
+ "packages": {
83
+ "type": "object",
84
+ "patternProperties": {
85
+ "^[A-Za-z0-9-_\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff]{1,20}$": {
86
+ "$ref": "#/definitions/package"
87
+ }
88
+ },
89
+ "additionalProperties": false
90
+ },
91
+ "package": {
92
+ "type": "object",
93
+ "properties": {
94
+ "license": { "type": "string" },
95
+ "actions": { "$ref": "#/definitions/actions" }
96
+ }
97
+ },
98
+ "actions": {
99
+ "type": "object",
100
+ "patternProperties": {
101
+ "^[A-Za-z0-9-_\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff]{1,20}$": {
102
+ "$ref": "#/definitions/action"
103
+ }
104
+ },
105
+ "additionalProperties": false
106
+ },
107
+ "action": {
108
+ "type": "object",
109
+ "properties": {
110
+ "function": { "type": "string" },
111
+ "web": { "type": "string" },
112
+ "runtime": { "type": "string" },
113
+ "inputs": { "$ref": "#/definitions/inputs" },
114
+ "annotations": { "$ref": "#/definitions/annotations" }
115
+ },
116
+ "required": ["function", "runtime"]
117
+ },
118
+ "inputs": {
119
+ "type": "object",
120
+ "patternProperties": {
121
+ "^[A-Za-z0-9-_\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff]{1,20}$": {
122
+ "type": ["string", "boolean"]
123
+ }
124
+ },
125
+ "additionalProperties": false
126
+ },
127
+ "annotations": {
128
+ "type": "object",
129
+ "patternProperties": {
130
+ "^[A-Za-z0-9-_\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff]{1,20}$": {
131
+ "type": ["string", "boolean"]
132
+ }
133
+ },
134
+ "additionalProperties": false
135
+ },
136
+ "hooks": {
137
+ "type": "object",
138
+ "properties": {
139
+ "pre-app-build": { "type": "string" },
140
+ "post-app-build": { "type": "string" },
141
+ "build-actions": { "type": "string" },
142
+ "build-static": { "type": "string" },
143
+ "pre-app-deploy": { "type": "string" },
144
+ "post-app-deploy": { "type": "string" },
145
+ "deploy-actions": { "type": "string" },
146
+ "deploy-static": { "type": "string" },
147
+ "pre-app-undeploy": { "type": "string" },
148
+ "post-app-undeploy": { "type": "string" },
149
+ "undeploy-actions": { "type": "string" },
150
+ "undeploy-static": { "type": "string" },
151
+ "pre-app-run": { "type": "string" },
152
+ "post-app-run": { "type": "string" },
153
+ "serve-static": { "type": "string" }
154
+ }
155
+ }
156
+ }
157
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://adobe.io/schemas/app-builder/deploy.yaml.json/v1",
4
+ "type": "object",
5
+ "properties": {
6
+ "application": { "$ref": "#/definitions/application" },
7
+ "workspaces": { "$ref": "#/definitions/workspaces" },
8
+ "meshConfig": { "$ref": "#/definitions/meshConfig" },
9
+ "extensions": { "$ref": "#/definitions/extensions" },
10
+ "apis": { "$ref": "#/definitions/apis" },
11
+ "runtime": {
12
+ "type": "boolean",
13
+ "default": true
14
+ }
15
+ },
16
+ "required": ["application", "workspaces", "runtime"],
17
+ "definitions": {
18
+ "application": {
19
+ "type": "object",
20
+ "properties": {
21
+ "id": { "type": "string" },
22
+ "version": { "type": "string" }
23
+ },
24
+ "required": ["id", "version"]
25
+ },
26
+ "workspaces": {
27
+ "type": "array",
28
+ "items": { "$ref": "#/definitions/workspace" },
29
+ "default": []
30
+ },
31
+ "meshConfig": {
32
+ "type": "object",
33
+ "properties": {
34
+ "meshConfig": { "$ref": "#/definitions/meshConfigNested" },
35
+ "meshId": {
36
+ "type": "string"
37
+ },
38
+ "lastUpdatedBy": { "type": "object" },
39
+ "lastUpdated": {
40
+ "type": "string",
41
+ "pattern": "(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:\\.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)"
42
+ },
43
+ "meshStatus": { "type": "string" }
44
+ },
45
+ "required": ["meshConfig", "meshId"]
46
+ },
47
+ "meshConfigNested": {
48
+ "type": "object",
49
+ "properties": {
50
+ "sources": {
51
+ "type": "array",
52
+ "items": { "$ref": "#/definitions/meshConfigSource" },
53
+ "default": []
54
+ }
55
+ }
56
+ },
57
+ "meshConfigSource": {
58
+ "type": "object",
59
+ "properties": {
60
+ "name": { "type": "string" },
61
+ "handler": { "$ref": "#/definitions/meshConfigSourceHandler" }
62
+ },
63
+ "required": ["name", "handler"]
64
+ },
65
+ "meshConfigSourceHandler": {
66
+ "type": "object",
67
+ "properties": {
68
+ "graphql": { "$ref": "#/definitions/graphql" }
69
+ }
70
+ },
71
+ "graphql": {
72
+ "type": "object",
73
+ "properties": {
74
+ "handler": {
75
+ "type": "string",
76
+ "format": "uri"
77
+ }
78
+ }
79
+ },
80
+ "workspace": {
81
+ "type": "string",
82
+ "pattern": "^[A-Za-z0-9\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff]{1,20}$"
83
+ },
84
+ "extensions": {
85
+ "type": "array",
86
+ "items": { "$ref": "#/definitions/extension" }
87
+ },
88
+ "extension": {
89
+ "type": "object",
90
+ "properties": {
91
+ "extensionPointId": { "type": "string" }
92
+ },
93
+ "required": ["extensionPointId"]
94
+ },
95
+ "apis": {
96
+ "type": "array",
97
+ "items": { "$ref": "#/definitions/api" }
98
+ },
99
+ "api": {
100
+ "type": "object",
101
+ "properties": {
102
+ "code": { "type": "string" }
103
+ },
104
+ "required": ["code"]
105
+ }
106
+ }
107
+ }
@@ -0,0 +1,19 @@
1
+ /*
2
+ Copyright 2023 Adobe. All rights reserved.
3
+ This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License. You may obtain a copy
5
+ of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+
7
+ Unless required by applicable law or agreed to in writing, software distributed under
8
+ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ OF ANY KIND, either express or implied. See the License for the specific language
10
+ governing permissions and limitations under the License.
11
+ */
12
+
13
+ const { USER_CONFIG_FILE, DEPLOY_CONFIG_FILE, IMPORT_CONFIG_FILE } = require('../src/lib/defaults')
14
+
15
+ module.exports = {
16
+ [IMPORT_CONFIG_FILE]: require('./config.schema.json'),
17
+ [USER_CONFIG_FILE]: require('./app.config.yaml.schema.json'),
18
+ [DEPLOY_CONFIG_FILE]: require('./deploy.yaml.schema.json')
19
+ }