bunki 0.5.1 → 0.5.3
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 +9 -5
- package/dist/cli/commands/css.d.ts +18 -0
- package/dist/cli/commands/generate.d.ts +17 -0
- package/dist/cli/commands/images-push.d.ts +14 -0
- package/dist/cli/commands/init.d.ts +16 -0
- package/dist/cli/commands/new-post.d.ts +13 -0
- package/dist/cli/commands/serve.d.ts +13 -0
- package/dist/cli.js +1188 -1084
- package/dist/index.js +4 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -31522,16 +31522,16 @@ class S3Uploader {
|
|
|
31522
31522
|
try {
|
|
31523
31523
|
const imagePath = path6.join(imagesDir, imageFile);
|
|
31524
31524
|
const filename = path6.basename(imagePath);
|
|
31525
|
-
console.log(`[S3] Uploading image ${imagePath} to S3 bucket ${this.s3Config.bucket}/${
|
|
31525
|
+
console.log(`[S3] Uploading image ${imagePath} to S3 bucket ${this.s3Config.bucket}/${imageFile}...`);
|
|
31526
31526
|
const file = Bun.file(imagePath);
|
|
31527
31527
|
const contentType = file.type;
|
|
31528
31528
|
if (process.env.BUNKI_DRY_RUN === "true") {
|
|
31529
|
-
console.log(`[S3] Dry run: would upload ${
|
|
31529
|
+
console.log(`[S3] Dry run: would upload ${imageFile} with content type ${contentType}`);
|
|
31530
31530
|
} else {
|
|
31531
|
-
const s3File = this.client.file(
|
|
31531
|
+
const s3File = this.client.file(imageFile);
|
|
31532
31532
|
await s3File.write(file);
|
|
31533
31533
|
}
|
|
31534
|
-
const imageUrl = this.getPublicUrl(
|
|
31534
|
+
const imageUrl = this.getPublicUrl(imageFile);
|
|
31535
31535
|
console.log(`[S3] Image uploaded to ${imageUrl}`);
|
|
31536
31536
|
imageUrls[imageFile] = imageUrl;
|
|
31537
31537
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bunki",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
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",
|
|
@@ -59,15 +59,15 @@
|
|
|
59
59
|
"slugify": "^1.6.6"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@tailwindcss/postcss": "^4.1.
|
|
62
|
+
"@tailwindcss/postcss": "^4.1.15",
|
|
63
63
|
"@types/nunjucks": "^3.2.6",
|
|
64
64
|
"@types/sanitize-html": "^2.16.0",
|
|
65
65
|
"autoprefixer": "^10.4.20",
|
|
66
66
|
"bun-types": "^1.3.0",
|
|
67
67
|
"husky": "^9.1.7",
|
|
68
|
-
"lint-staged": "^16.2.
|
|
68
|
+
"lint-staged": "^16.2.5",
|
|
69
69
|
"prettier": "^3.6.2",
|
|
70
|
-
"tailwindcss": "^4.1.
|
|
70
|
+
"tailwindcss": "^4.1.15",
|
|
71
71
|
"typescript": "^5.9.3"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|