bunki 0.18.1 → 0.18.6

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.
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Application-wide constants
3
+ * Centralized location for magic numbers and configuration values
4
+ */
5
+ /**
6
+ * Pagination and batching constants
7
+ */
8
+ export declare const PAGINATION: {
9
+ /** Default number of items per page for paginated views */
10
+ readonly DEFAULT_PAGE_SIZE: 10;
11
+ /** Batch size for parallel post processing */
12
+ readonly BATCH_SIZE: 10;
13
+ /** Maximum number of posts to include in RSS feed */
14
+ readonly RSS_FEED_LIMIT: 40;
15
+ };
16
+ /**
17
+ * File I/O constants
18
+ */
19
+ export declare const FILES: {
20
+ /** Buffer size for file writer (1MB) */
21
+ readonly WRITE_BUFFER_SIZE: number;
22
+ /** Maximum sitemap file size in bytes (40KB) */
23
+ readonly MAX_SITEMAP_SIZE: 40000;
24
+ /** Maximum number of URLs in a sitemap before requiring an index */
25
+ readonly MAX_SITEMAP_URLS: 1000;
26
+ };
27
+ /**
28
+ * SEO and indexing constants
29
+ */
30
+ export declare const SEO: {
31
+ /** Add noindex meta tag to pagination pages beyond this number */
32
+ readonly NOINDEX_AFTER_PAGE: 2;
33
+ };
34
+ /**
35
+ * Cache and time-based constants
36
+ */
37
+ export declare const CACHE: {
38
+ /** One month in milliseconds */
39
+ readonly ONE_MONTH_MS: number;
40
+ };
41
+ /**
42
+ * Date formatting constants
43
+ */
44
+ export declare const DATE: {
45
+ /** Month names for date formatting */
46
+ readonly MONTHS: readonly ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
47
+ };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,12 @@
1
1
  export * from "./types";
2
+ export { PAGINATION, FILES, SEO, CACHE, DATE } from "./constants";
2
3
  export { parseMarkdownDirectory } from "./parser";
3
4
  export { startServer } from "./server";
4
5
  export { SiteGenerator } from "./site-generator";
5
6
  export { configExists, createDefaultConfig, DEFAULT_CONFIG_FILE, DEFAULT_CONTENT_DIR, DEFAULT_OUTPUT_DIR, DEFAULT_TEMPLATES_DIR, loadConfig, saveConfig, } from "./config";
6
7
  export { copyFile, ensureDir, fileExists, findFilesByPattern, getBaseFilename, readFileAsText, } from "./utils/file-utils";
7
8
  export { convertMarkdownToHtml, extractExcerpt, parseMarkdownFile, } from "./utils/markdown-utils";
9
+ export { createTemplateEngine } from "./utils/template-engine";
10
+ export { generateCollectionSchemas, generateHomeBreadcrumbs, } from "./utils/schema-factory";
8
11
  export { DEFAULT_IMAGES_DIR, uploadImages } from "./utils/image-uploader";
9
12
  export { createUploader } from "./utils/s3-uploader";