@easy-web/cli 0.3.2 → 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/README.md +15 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ not clone a site, copy a pilot, or read a customer repository.
|
|
|
65
65
|
Content generation supports one locale matching `shell.defaultLocale`, or the
|
|
66
66
|
opt-in DE/EN pair with a distinct label and route for each locale. It supports
|
|
67
67
|
one or more content types, required `title`/`slug`/`body`, optional
|
|
68
|
-
`summary`/`image`/`order`/`schedule`, and `list`/`detail` plus optional `navigation` bindings. At
|
|
68
|
+
`summary`/`image`/`photos`/`order`/`schedule`, and `list`/`detail` plus optional `navigation` bindings. At
|
|
69
69
|
most one type can be `primary`; that marker describes its graph role, not a
|
|
70
70
|
homepage renderer. Routes use non-reserved lowercase path segments and must not
|
|
71
71
|
overlap. Unsupported locale combinations, traits, homepage bindings, and
|
|
@@ -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
|
+
### Add photos to a content type
|
|
77
|
+
|
|
78
|
+
Add `"photos"` to a type's traits to render its photos as a static, uncropped
|
|
79
|
+
grid after the detail body. Each entry has a `photos` list of `{ src, alt }`
|
|
80
|
+
objects; every photo needs a local Astro image and non-blank alt text. Missing,
|
|
81
|
+
null or empty lists render no gallery. The CMS editor offers an optional list
|
|
82
|
+
with image and alt fields. The generated synthetic example uses the same media
|
|
83
|
+
root as other images. Photos do not supply a cover, card image or social image;
|
|
84
|
+
select `image` separately for those. The generated editor does not expose
|
|
85
|
+
captions or gallery layout options. Photos retain the core `^1.6.0` and CMS
|
|
86
|
+
`^1.9.0` runtime floors.
|
|
87
|
+
|
|
88
|
+
### Order entries
|
|
89
|
+
|
|
76
90
|
When selected, `order` is optional per entry and accepts finite integers,
|
|
77
91
|
including negative and zero values. Missing values sort last; ties sort by slug
|
|
78
92
|
in the content locale, then by the collection ID. CMS forms expose an optional,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easy-web/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.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.13.0",
|
|
20
|
+
"@easy-web/auth": "1.13.0",
|
|
21
|
+
"@easy-web/cms-adapters": "1.13.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^24.0.0",
|