@easy-web/cli 0.4.0 → 0.5.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/README.md +14 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -73,6 +73,20 @@ combining this composition with application auth fail as invalid input, before
|
|
|
73
73
|
target files are created. Existing single-locale and shell-only/auth behavior
|
|
74
74
|
remains unchanged.
|
|
75
75
|
|
|
76
|
+
### Make cover images optional
|
|
77
|
+
|
|
78
|
+
The `image` trait normally requires a cover on every entry. To allow entries
|
|
79
|
+
without one, add `"imageOptional": true` to that content type alongside the
|
|
80
|
+
`image` trait. A missing, null, empty string or empty list produces no cover.
|
|
81
|
+
Hand-authored content can use an `{ src, alt }` object; the optional CMS field
|
|
82
|
+
stores zero or one such object in a list. A present image requires a local Astro
|
|
83
|
+
image and non-blank alt text. Lists and details omit missing covers; photos never
|
|
84
|
+
become a fallback cover. The generated example uses the CMS-compatible list form.
|
|
85
|
+
|
|
86
|
+
Content-only sites retain the core `^1.6.0` floor (or the higher floor required
|
|
87
|
+
by other options). With CMS, this option requires core and CMS adapters
|
|
88
|
+
`^1.14.0`, the first family release containing the updated editor helper.
|
|
89
|
+
|
|
76
90
|
### Add photos to a content type
|
|
77
91
|
|
|
78
92
|
Add `"photos"` to a type's traits to render its photos as a static, uncropped
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easy-web/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Create-only command-line interface for generating easy-web sites.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"mri": "^1.2.0",
|
|
18
18
|
"astro": "^7.3.5",
|
|
19
|
-
"@easy-web/core": "1.
|
|
20
|
-
"@easy-web/auth": "1.
|
|
21
|
-
"@easy-web/cms-adapters": "1.
|
|
19
|
+
"@easy-web/core": "1.14.0",
|
|
20
|
+
"@easy-web/auth": "1.14.0",
|
|
21
|
+
"@easy-web/cms-adapters": "1.14.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^24.0.0",
|