bunki 0.19.2 → 0.19.4

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/types.d.ts CHANGED
@@ -133,6 +133,8 @@ export interface SiteConfig {
133
133
  copyright?: string;
134
134
  /** Strict mode: fail build on parsing errors (default: false) */
135
135
  strictMode?: boolean;
136
+ /** Google Analytics measurement ID (e.g., "G-XXXXXXXXXX"). If set, gtag.js is injected on every page. */
137
+ googleAnalyticsId?: string;
136
138
  /**
137
139
  * Configuration for content assets stored alongside markdown in content/{year}/{assetsDir}/.
138
140
  * When set, `bunki images:push --content-assets` uses this config for uploads.
@@ -222,7 +224,7 @@ export interface ImageUploader {
222
224
  * @param keyTransform Optional function to transform relative file path into S3 key
223
225
  * @returns Record of S3 keys to their public URLs
224
226
  */
225
- uploadImages(imagesDir: string, minYear?: number, keyTransform?: (relativePath: string) => string): Promise<Record<string, string>>;
227
+ uploadImages(imagesDir: string, minYear?: number, keyTransform?: (relativePath: string) => string, maxYear?: number): Promise<Record<string, string>>;
226
228
  }
227
229
  /**
228
230
  * S3 configuration type
@@ -262,6 +264,8 @@ export interface ImageUploadOptions {
262
264
  images?: string;
263
265
  outputJson?: string;
264
266
  minYear?: number;
267
+ /** Only upload images up to and including this year */
268
+ maxYear?: number;
265
269
  /** Scan content/{year}/{assetsDir}/ and upload as {year}/{filename} */
266
270
  contentAssets?: boolean;
267
271
  /**
@@ -19,7 +19,7 @@ export declare class S3Uploader implements Uploader, ImageUploader {
19
19
  * @param concurrency Maximum number of concurrent tasks
20
20
  */
21
21
  private executeWithConcurrency;
22
- uploadImages(imagesDir: string, minYear?: number, keyTransform?: (relativePath: string) => string): Promise<Record<string, string>>;
22
+ uploadImages(imagesDir: string, minYear?: number, keyTransform?: (relativePath: string) => string, maxYear?: number): Promise<Record<string, string>>;
23
23
  }
24
24
  /**
25
25
  * Create an S3 uploader
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bunki",
3
- "version": "0.19.2",
3
+ "version": "0.19.4",
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,7 +14,6 @@
14
14
  "test:watch": "bun test --watch",
15
15
  "format": "prettier --write .",
16
16
  "format:check": "prettier --check .",
17
- "prepare": "husky",
18
17
  "lint-staged": "lint-staged",
19
18
  "typecheck": "bun tsc --noEmit",
20
19
  "clean": "rm -rf dist coverage",
@@ -50,26 +49,26 @@
50
49
  "commander": "^14.0.3",
51
50
  "gray-matter": "^4.0.3",
52
51
  "highlight.js": "^11.11.1",
53
- "marked": "17.0.3",
52
+ "marked": "17.0.5",
54
53
  "marked-alert": "^2.1.2",
55
54
  "marked-highlight": "^2.2.3",
56
55
  "nunjucks": "^3.2.4",
57
- "postcss": "^8.5.6",
56
+ "postcss": "^8.0.0",
58
57
  "postcss-cli": "^11.0.1",
59
- "sanitize-html": "2.17.1",
60
- "slugify": "^1.6.6"
58
+ "sanitize-html": "2.17.2",
59
+ "slugify": "^1.6.8"
61
60
  },
62
61
  "devDependencies": {
63
- "@tailwindcss/postcss": "^4.1.18",
62
+ "@tailwindcss/postcss": "^4.2.2",
64
63
  "@types/nunjucks": "^3.2.6",
65
- "@types/sanitize-html": "^2.16.0",
66
- "autoprefixer": "^10.4.24",
67
- "bun-types": "^1.3.9",
64
+ "@types/sanitize-html": "^2.16.1",
65
+ "autoprefixer": "^10.4.27",
66
+ "bun-types": "^1.3.11",
68
67
  "husky": "^9.1.7",
69
- "lint-staged": "^16.2.7",
68
+ "lint-staged": "^16.4.0",
70
69
  "prettier": "^3.8.1",
71
- "tailwindcss": "^4.1.18",
72
- "typescript": "^5.9.3"
70
+ "tailwindcss": "^4.2.2",
71
+ "typescript": "^6.0.2"
73
72
  },
74
73
  "peerDependencies": {
75
74
  "postcss": "^8.0.0"