@zeropress/build-core 0.5.0 → 0.5.2

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
@@ -54,7 +54,7 @@ import {
54
54
  - generating special files such as:
55
55
  - `sitemap.xml`
56
56
  - `feed.xml`
57
- - `robots.txt`
57
+ - fallback `robots.txt`
58
58
  - writing outputs through a pluggable writer
59
59
 
60
60
  It does not:
@@ -119,7 +119,9 @@ Notes:
119
119
  - `previewData` must already satisfy the canonical preview-data contract
120
120
  - `themePackage` must already be a validated in-memory theme package
121
121
  - `sitemap.xml` and `feed.xml` are emitted only when `site.url` is a non-empty canonical URL
122
- - `robots.txt` is still emitted when `generateSpecialFiles` is enabled
122
+ - fallback `robots.txt` is emitted when `generateSpecialFiles` is enabled and `generateRobotsTxt` is not `false`
123
+ - fallback `robots.txt` uses `site.indexing`; `false` emits `Disallow: /`, while missing or `true` emits `Allow: /`
124
+ - callers that disable fallback robots because a public `robots.txt` exists should copy that file as-is; sitemap directives in custom robots files are caller/user responsibility
123
125
 
124
126
  ### `buildSiteFromThemeDir(input)`
125
127
 
@@ -175,6 +177,8 @@ Theme validation is enforced through:
175
177
 
176
178
  `buildSiteFromThemeDir()` is the convenience entry point that loads a theme directory and converts it into the required in-memory `themePackage`.
177
179
 
180
+ JavaScript theme assets are emitted as provided. Build-core may hash output filenames, but it does not rewrite or minify JavaScript content.
181
+
178
182
  As of `preview-data v0.4`, the payload no longer carries `routes` arrays or raw HTML fragments such as `categories_html`.
179
183
 
180
184
  Build-core now derives:
@@ -219,6 +223,7 @@ Supported options:
219
223
 
220
224
  - `assetHashing`
221
225
  - `generateSpecialFiles`
226
+ - `generateRobotsTxt`
222
227
  - `writeManifest`
223
228
 
224
229
  These options apply to both full builds and partial renders where relevant.
@@ -227,6 +232,7 @@ Defaults:
227
232
 
228
233
  - `assetHashing: true`
229
234
  - `generateSpecialFiles: true`
235
+ - `generateRobotsTxt: true`
230
236
  - `writeManifest: false`
231
237
 
232
238
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeropress/build-core",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Shared ZeroPress build core",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -33,9 +33,9 @@
33
33
  "node": ">=18.18.0"
34
34
  },
35
35
  "dependencies": {
36
- "@zeropress/slug-policy": "^0.1.0",
37
- "@zeropress/preview-data-validator": "0.5.0",
38
- "@zeropress/theme-validator": "0.5.1",
36
+ "@zeropress/slug-policy": "0.1.0",
37
+ "@zeropress/preview-data-validator": "0.5.2",
38
+ "@zeropress/theme-validator": "0.5.3",
39
39
  "highlight.js": "^11.11.1",
40
40
  "markdown-it": "^14.1.0",
41
41
  "markdown-it-anchor": "^9.2.0"