@easy-web/cli 0.3.0 → 0.3.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 +20 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -81,6 +81,26 @@ and, when selected, CMS adapters `^1.10.0`; those floors assume both features
|
|
|
81
81
|
first ship together in 1.10.0. Other content-only compositions retain `^1.6.0`,
|
|
82
82
|
and CMS compositions without either feature retain `^1.9.0`.
|
|
83
83
|
|
|
84
|
+
### Opt in to publication gating
|
|
85
|
+
|
|
86
|
+
Set `"publish": "missing-date-means-draft"` on an individual content type in
|
|
87
|
+
`composition.contentTypes` to hide entries without a publication date. Alternatively,
|
|
88
|
+
`"missing-date-means-published"` shows undated entries. Both hide future dates and
|
|
89
|
+
show dates at or before evaluation time. Omit `publish` to keep the unfiltered
|
|
90
|
+
behavior. This option requires core `^1.11.0` and, with CMS, CMS adapters
|
|
91
|
+
`^1.11.0`.
|
|
92
|
+
|
|
93
|
+
The generated optional `publishDate` accepts dates, date strings, empty strings
|
|
94
|
+
and null; invalid dates and other types fail the build. CMS supplies a date-only UTC widget.
|
|
95
|
+
The draft policy also hides the undated generated example until a date is added.
|
|
96
|
+
Generated lists, detail routes and translation links filter independently for each
|
|
97
|
+
content type, using one instant captured when the static build is configured.
|
|
98
|
+
Development evaluates the current time on each read. On a static site, schedule a
|
|
99
|
+
rebuild after a date is reached; HTML does not update itself. Gating is not access
|
|
100
|
+
control. Any additional feeds, search indexes or custom routes must apply the same
|
|
101
|
+
rule and build instant themselves. Changing the generated build configuration or
|
|
102
|
+
switching to server rendering requires reviewing this behavior.
|
|
103
|
+
|
|
84
104
|
To opt in to bilingual content, declare both complete locale entries and make
|
|
85
105
|
the shell's default match the first locale:
|
|
86
106
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easy-web/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
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.11.0",
|
|
20
|
+
"@easy-web/auth": "1.11.0",
|
|
21
|
+
"@easy-web/cms-adapters": "1.11.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^24.0.0",
|