bunki 0.19.4 → 0.19.5

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/dist/cli.js CHANGED
@@ -36142,6 +36142,9 @@ async function generate404Page(config, outputDir) {
36142
36142
  async function generateMapPage(site, config, outputDir) {
36143
36143
  await generateOptionalPage("map.njk", { site: config, posts: site.posts }, outputDir, "map/index.html", "map page");
36144
36144
  }
36145
+ async function generatePrivacyPage(config, outputDir) {
36146
+ await generateOptionalPage("privacy.njk", { site: config }, outputDir, "privacy/index.html", "privacy page");
36147
+ }
36145
36148
 
36146
36149
  // src/generators/assets.ts
36147
36150
  var {Glob: Glob2 } = globalThis.Bun;
@@ -36446,7 +36449,8 @@ Move any files from content/_assets/ into the correct year folder and retry.`);
36446
36449
  generateTagPages(this.site, this.options.config, this.options.outputDir),
36447
36450
  generateYearArchives(this.site, this.options.config, this.options.outputDir),
36448
36451
  generateMapPage(this.site, this.options.config, this.options.outputDir),
36449
- generate404Page(this.options.config, this.options.outputDir)
36452
+ generate404Page(this.options.config, this.options.outputDir),
36453
+ generatePrivacyPage(this.options.config, this.options.outputDir)
36450
36454
  ]);
36451
36455
  this.metrics.startStage("assetCopying");
36452
36456
  await copyStaticAssets(this.options.templatesDir, this.options.outputDir);
@@ -46,3 +46,9 @@ export declare function generate404Page(config: SiteConfig, outputDir: string):
46
46
  * @param outputDir - Output directory
47
47
  */
48
48
  export declare function generateMapPage(site: Site, config: SiteConfig, outputDir: string): Promise<void>;
49
+ /**
50
+ * Generate privacy policy page (optional)
51
+ * @param config - Site configuration
52
+ * @param outputDir - Output directory
53
+ */
54
+ export declare function generatePrivacyPage(config: SiteConfig, outputDir: string): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunki",
3
- "version": "0.19.4",
3
+ "version": "0.19.5",
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",
@@ -14,6 +14,7 @@
14
14
  "test:watch": "bun test --watch",
15
15
  "format": "prettier --write .",
16
16
  "format:check": "prettier --check .",
17
+ "prepare": "husky",
17
18
  "lint-staged": "lint-staged",
18
19
  "typecheck": "bun tsc --noEmit",
19
20
  "clean": "rm -rf dist coverage",
@@ -53,7 +54,7 @@
53
54
  "marked-alert": "^2.1.2",
54
55
  "marked-highlight": "^2.2.3",
55
56
  "nunjucks": "^3.2.4",
56
- "postcss": "^8.0.0",
57
+ "postcss": "^8.5.8",
57
58
  "postcss-cli": "^11.0.1",
58
59
  "sanitize-html": "2.17.2",
59
60
  "slugify": "^1.6.8"