@relyio/cli 0.3.3 → 0.4.0
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.js +16976 -5232
- package/package.json +7 -7
- package/templates/blog/queries/featuredPosts.yaml +7 -17
- package/templates/blog/queries/latestPosts.yaml +5 -13
- package/templates/blog/schemas/asset-types/photo.yaml +20 -0
- package/templates/blog/schemas/author.yaml +3 -1
- package/templates/blog/schemas/blogPost.yaml +7 -1
- package/templates/blog/schemas/components/authorInfo.yaml +5 -2
- package/templates/blog/schemas/components/seoMetadata.yaml +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relyio/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "RelyIO is coming soon — this package is not ready for general use yet.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "team@relyio.com"
|
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
"figures": "^6.1.0",
|
|
28
28
|
"glob": "13.0.6",
|
|
29
29
|
"cli-highlight": "^2.1.11",
|
|
30
|
-
"handlebars": "4.7.9",
|
|
31
30
|
"ink": "^7.0.3",
|
|
32
31
|
"ink-spinner": "^5.0.0",
|
|
33
32
|
"inquirer": "^12.6.0",
|
|
@@ -65,15 +64,15 @@
|
|
|
65
64
|
"typescript": "npm:@typescript/typescript6@6.0.2",
|
|
66
65
|
"typescript-eslint": "8.69.0",
|
|
67
66
|
"vitest": "4.1.11",
|
|
68
|
-
"@relyio/api-contract": "0.1.0",
|
|
69
|
-
"@relyio/codegen-typescript": "1.0.0",
|
|
70
67
|
"@relyio/codegen-core": "1.0.0",
|
|
71
68
|
"@relyio/codegen-python": "0.1.0",
|
|
69
|
+
"@relyio/api-contract": "0.1.0",
|
|
70
|
+
"@relyio/codegen-typescript": "1.0.0",
|
|
72
71
|
"@relyio/device-auth": "0.0.0",
|
|
73
|
-
"@relyio/eslint-config": "0.0.0",
|
|
74
72
|
"@relyio/schema": "0.0.1",
|
|
75
|
-
"@relyio/sdk": "0.
|
|
76
|
-
"@relyio/tenancy": "0.1.0"
|
|
73
|
+
"@relyio/sdk": "0.7.0",
|
|
74
|
+
"@relyio/tenancy": "0.1.0",
|
|
75
|
+
"@relyio/eslint-config": "0.0.0"
|
|
77
76
|
},
|
|
78
77
|
"publishConfig": {
|
|
79
78
|
"access": "public"
|
|
@@ -89,6 +88,7 @@
|
|
|
89
88
|
"lint:write": "relyio-lint --fix",
|
|
90
89
|
"clean": "rimraf dist",
|
|
91
90
|
"type:check": "tsc --noEmit",
|
|
91
|
+
"test:types": "tsc --noEmit -p tsconfig.test.json",
|
|
92
92
|
"test": "vitest run",
|
|
93
93
|
"test:watch": "vitest",
|
|
94
94
|
"local-link": "pnpm link --global",
|
|
@@ -2,20 +2,10 @@ queries:
|
|
|
2
2
|
- id: "featuredPosts"
|
|
3
3
|
endpoint: "/api/featured-posts"
|
|
4
4
|
description: "Fetches featured blog posts"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
operator: "="
|
|
13
|
-
value: true
|
|
14
|
-
sort:
|
|
15
|
-
- field: "publishedAt"
|
|
16
|
-
order: "desc"
|
|
17
|
-
limit: 5
|
|
18
|
-
- step: "respond"
|
|
19
|
-
action: "respond"
|
|
20
|
-
target: "fetchPosts.results"
|
|
21
|
-
responseRoot: "featured"
|
|
5
|
+
fetch:
|
|
6
|
+
contentType: "blogPost"
|
|
7
|
+
where:
|
|
8
|
+
isFeatured: true
|
|
9
|
+
sort:
|
|
10
|
+
- publishedAt: "desc"
|
|
11
|
+
limit: 5
|
|
@@ -2,16 +2,8 @@ queries:
|
|
|
2
2
|
- id: "latestPosts"
|
|
3
3
|
endpoint: "/api/latest-posts"
|
|
4
4
|
description: "Fetches the latest blog posts"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
sort:
|
|
11
|
-
- field: "publishedAt"
|
|
12
|
-
order: "desc"
|
|
13
|
-
limit: 5
|
|
14
|
-
- step: "respond"
|
|
15
|
-
action: "respond"
|
|
16
|
-
target: "fetchPosts.results"
|
|
17
|
-
responseRoot: "posts"
|
|
5
|
+
fetch:
|
|
6
|
+
contentType: "blogPost"
|
|
7
|
+
sort:
|
|
8
|
+
- publishedAt: "desc"
|
|
9
|
+
limit: 5
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
assetTypes:
|
|
2
|
+
- id: "photo"
|
|
3
|
+
displayName: "Photo"
|
|
4
|
+
displayNamePlural: "Photos"
|
|
5
|
+
displayField: "altText"
|
|
6
|
+
fields:
|
|
7
|
+
- id: "altText"
|
|
8
|
+
type: "shortText"
|
|
9
|
+
ui:
|
|
10
|
+
displayName: "Alt Text"
|
|
11
|
+
image:
|
|
12
|
+
upload:
|
|
13
|
+
allowedMimeTypes: ["image/jpeg", "image/png", "image/webp"]
|
|
14
|
+
maxFileSize: 10485760
|
|
15
|
+
variants:
|
|
16
|
+
- id: "thumb"
|
|
17
|
+
width: 400
|
|
18
|
+
height: 400
|
|
19
|
+
fit: "cover"
|
|
20
|
+
format: "webp"
|
|
@@ -24,10 +24,16 @@ contentTypes:
|
|
|
24
24
|
type: "date"
|
|
25
25
|
ui:
|
|
26
26
|
displayName: "Published Date"
|
|
27
|
+
- id: "isFeatured"
|
|
28
|
+
type: "boolean"
|
|
29
|
+
config:
|
|
30
|
+
defaultValue: false
|
|
31
|
+
ui:
|
|
32
|
+
displayName: "Featured"
|
|
27
33
|
- id: "author"
|
|
28
34
|
type: "reference"
|
|
29
35
|
config:
|
|
30
|
-
|
|
36
|
+
to: "author"
|
|
31
37
|
ui:
|
|
32
38
|
displayName: "Author"
|
|
33
39
|
- id: "seo"
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
components:
|
|
2
|
-
authorInfo
|
|
2
|
+
- id: "authorInfo"
|
|
3
|
+
displayName: "Author Info"
|
|
3
4
|
fields:
|
|
4
5
|
- id: "name"
|
|
5
6
|
type: "shortText"
|
|
6
7
|
ui:
|
|
7
8
|
displayName: "Name"
|
|
8
9
|
- id: "profilePicture"
|
|
9
|
-
type: "
|
|
10
|
+
type: "reference"
|
|
11
|
+
config:
|
|
12
|
+
to: "photo"
|
|
10
13
|
ui:
|
|
11
14
|
displayName: "Profile Picture"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
components:
|
|
2
|
-
seoMetadata
|
|
2
|
+
- id: "seoMetadata"
|
|
3
|
+
displayName: "SEO Metadata"
|
|
3
4
|
fields:
|
|
4
5
|
- id: "metaTitle"
|
|
5
6
|
type: "shortText"
|
|
@@ -10,6 +11,8 @@ components:
|
|
|
10
11
|
ui:
|
|
11
12
|
displayName: "Meta Description"
|
|
12
13
|
- id: "openGraphImage"
|
|
13
|
-
type: "
|
|
14
|
+
type: "reference"
|
|
15
|
+
config:
|
|
16
|
+
to: "photo"
|
|
14
17
|
ui:
|
|
15
18
|
displayName: "Open Graph Image"
|