From 10feea3665112c1b29732b3c298b15aab4ec7636 Mon Sep 17 00:00:00 2001 From: satr14 Date: Wed, 3 Jun 2026 20:50:34 +0700 Subject: [PATCH] wrangler and ci setup --- bun.lock | 2 +- package.json | 4 +++- templates/home.html | 1 + templates/post.html | 1 + wrangler.jsonc | 7 +++++++ 5 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 wrangler.jsonc diff --git a/bun.lock b/bun.lock index 85e7976..5f6e9a2 100644 --- a/bun.lock +++ b/bun.lock @@ -95,7 +95,7 @@ "detect-libc": ["detect-libc@2.1.2", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="], - "enhanced-resolve": ["enhanced-resolve@5.22.0", "", { "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.3.3" } }, "sha512-xYcDWrpELkFzz9SpZ3PlI6Eu6eD93Yf0WLDRxikGhWJ3MAir2SNZTIVCVZqZ/NUyx8AdMc2gT9C0gPiw18kG+A=="], + "enhanced-resolve": ["enhanced-resolve@5.22.1", "", { "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.3.3" } }, "sha512-6QEuw3zoX1SJQc7b87aBXke/no+mG2bTBgw29gWMQonLmpEkWoCAVkl+M49e48AZlWzxiDzDZzYdp6kobcyLww=="], "graceful-fs": ["graceful-fs@4.2.11", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="], diff --git a/package.json b/package.json index 90aca3f..8a36d3e 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,10 @@ "private": true, "scripts": { "tw-dev": "bunx tailwindcss -i style.css -o dist/style.css --watch", + "bun-dev": "bun --watch index.ts", "prev": "bunx serve dist", - "bun-dev": "bun --watch index.ts" + "deploy": "bunx wrangler deploy --assets=./dist", + "build": "bunx tailwindcss -i style.css -o dist/style.css && bun index.ts" }, "devDependencies": { "@types/bun": "latest" diff --git a/templates/home.html b/templates/home.html index 3673d0c..69f47ff 100644 --- a/templates/home.html +++ b/templates/home.html @@ -5,6 +5,7 @@ [[SITE]] + diff --git a/templates/post.html b/templates/post.html index 44ca813..2f3c276 100644 --- a/templates/post.html +++ b/templates/post.html @@ -5,6 +5,7 @@ [[TITLE]] + diff --git a/wrangler.jsonc b/wrangler.jsonc new file mode 100644 index 0000000..3dc2d52 --- /dev/null +++ b/wrangler.jsonc @@ -0,0 +1,7 @@ +{ + "name": "satr14-mind", + "compatibility_date": "2026-05-29", + "assets": { + "directory": "dist" + } +} \ No newline at end of file