bunki 0.21.0 → 0.21.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.
@@ -30,6 +30,8 @@ export declare const FILES: {
30
30
  export declare const SEO: {
31
31
  /** Add noindex meta tag to pagination pages beyond this number */
32
32
  readonly NOINDEX_AFTER_PAGE: 2;
33
+ /** Tag pages with this many posts or fewer are noindexed (see tag.njk) and excluded from the sitemap */
34
+ readonly THIN_TAG_MAX_POSTS: 2;
33
35
  };
34
36
  /**
35
37
  * Cache and time-based constants
@@ -55,9 +55,9 @@ export declare function writeFile(filePath: string, content: string): Promise<vo
55
55
  */
56
56
  export declare function writeFileBuffer(filePath: string, data: Uint8Array | ArrayBuffer): Promise<void>;
57
57
  /**
58
- * Get base filename without extension, handling both patterns:
59
- * - content/2025/georgia-aquarium-atlanta.md → georgia-aquarium-atlanta
60
- * - content/2025/georgia-aquarium-atlanta/README.md → georgia-aquarium-atlanta
58
+ * Get base filename without extension, handling both post file patterns:
59
+ * - content/georgia-aquarium-atlanta.md → georgia-aquarium-atlanta
60
+ * - content/georgia-aquarium-atlanta/README.md → georgia-aquarium-atlanta
61
61
  * @param filePath - Path to file
62
62
  * @param extension - Extension to remove (default: ".md")
63
63
  * @returns Base filename (slug)
@@ -12,9 +12,9 @@ export declare const YOUTUBE_EMBED_REGEX: RegExp;
12
12
  export declare const EXTERNAL_LINK_REGEX: RegExp;
13
13
  export declare const SCHEMA_ORG_PLACE_TYPES: Set<string>;
14
14
  export declare const ALERT_ICONS: {
15
- readonly note: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z\" clip-rule=\"evenodd\" /></svg>";
16
- readonly tip: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M10 1a6 6 0 0 0-3.815 10.631C7.237 12.5 8 13.443 8 14.456v.644a.75.75 0 0 0 .75.75h2.5a.75.75 0 0 0 .75-.75v-.644c0-1.013.762-1.957 1.815-2.825A6 6 0 0 0 10 1ZM8.863 17.414a.75.75 0 0 0-.226 1.483 9.066 9.066 0 0 0 2.726 0 .75.75 0 0 0-.226-1.483 7.553 7.553 0 0 1-2.274 0Z\" /></svg>";
17
- readonly important: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 10 5Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z\" clip-rule=\"evenodd\" /></svg>";
18
- readonly warning: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z\" clip-rule=\"evenodd\" /></svg>";
19
- readonly caution: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"currentColor\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z\" clip-rule=\"evenodd\" /></svg>";
15
+ readonly note: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-7-4a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM9 9a.75.75 0 0 0 0 1.5h.253a.25.25 0 0 1 .244.304l-.459 2.066A1.75 1.75 0 0 0 10.747 15H11a.75.75 0 0 0 0-1.5h-.253a.25.25 0 0 1-.244-.304l.459-2.066A1.75 1.75 0 0 0 9.253 9H9Z" clip-rule="evenodd" /></svg>';
16
+ readonly tip: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path d="M10 1a6 6 0 0 0-3.815 10.631C7.237 12.5 8 13.443 8 14.456v.644a.75.75 0 0 0 .75.75h2.5a.75.75 0 0 0 .75-.75v-.644c0-1.013.762-1.957 1.815-2.825A6 6 0 0 0 10 1ZM8.863 17.414a.75.75 0 0 0-.226 1.483 9.066 9.066 0 0 0 2.726 0 .75.75 0 0 0-.226-1.483 7.553 7.553 0 0 1-2.274 0Z" /></svg>';
17
+ readonly important: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 10 5Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd" /></svg>';
18
+ readonly warning: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd" /></svg>';
19
+ readonly caution: '<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fill-rule="evenodd" d="M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0ZM8.28 7.22a.75.75 0 0 0-1.06 1.06L8.94 10l-1.72 1.72a.75.75 0 1 0 1.06 1.06L10 11.06l1.72 1.72a.75.75 0 1 0 1.06-1.06L11.06 10l1.72-1.72a.75.75 0 0 0-1.06-1.06L10 8.94 8.28 7.22Z" clip-rule="evenodd" /></svg>';
20
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunki",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "An opinionated static site generator built with Bun featuring PostCSS integration and modern web development workflows",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -13,7 +13,7 @@
13
13
  "test:coverage": "bun test --coverage --coverage-reporter=lcov",
14
14
  "test:watch": "bun test --watch",
15
15
  "format": "biome format --write .",
16
- "format:check": "biome format --check .",
16
+ "format:check": "biome format .",
17
17
  "lint": "biome check .",
18
18
  "lint:fix": "biome check --write .",
19
19
  "prepare": "husky",
@@ -51,25 +51,25 @@
51
51
  "commander": "^15.0.0",
52
52
  "gray-matter": "^4.0.3",
53
53
  "highlight.js": "^11.11.1",
54
- "marked": "^18.0.5",
54
+ "marked": "^18.0.7",
55
55
  "marked-alert": "^2.1.2",
56
56
  "marked-highlight": "^2.2.4",
57
57
  "nunjucks": "^3.2.4",
58
- "postcss": "^8.5.15",
58
+ "postcss": "^8.5.22",
59
59
  "postcss-cli": "^11.0.1",
60
- "sanitize-html": "^2.17.5",
60
+ "sanitize-html": "^2.17.6",
61
61
  "slugify": "^1.6.9"
62
62
  },
63
63
  "devDependencies": {
64
- "@biomejs/biome": "^2.5.0",
65
- "@tailwindcss/postcss": "^4.3.1",
64
+ "@biomejs/biome": "^2.5.5",
65
+ "@tailwindcss/postcss": "^4.3.3",
66
66
  "@types/nunjucks": "^3.2.6",
67
67
  "@types/sanitize-html": "^2.16.1",
68
- "autoprefixer": "^10.5.0",
68
+ "autoprefixer": "^10.5.4",
69
69
  "bun-types": "^1.3.14",
70
70
  "husky": "^9.1.7",
71
- "tailwindcss": "^4.3.1",
72
- "typescript": "^6.0.3"
71
+ "tailwindcss": "^4.3.3",
72
+ "typescript": "^7.0.2"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "postcss": "^8.0.0"
@@ -85,8 +85,7 @@
85
85
  "README.md"
86
86
  ],
87
87
  "engines": {
88
- "bun": ">=1.3.9",
89
- "node": ">=24.0.0"
88
+ "bun": ">=1.3.14"
90
89
  },
91
90
  "engineStrict": true,
92
91
  "publishConfig": {