From faadcc95ad1720743a109ad50c19c5d4665e2d6c Mon Sep 17 00:00:00 2001 From: bosh-code Date: Mon, 24 Mar 2025 16:45:07 +1300 Subject: [PATCH 1/7] ignore .idea/ --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 6b0733f..f5d5f9d 100755 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,6 @@ package-lock.json # ignore .astro directory .astro + +# ide +.idea/ From af4fb506c35cdaa7d364fe494f7f1a6eb03d4f9a Mon Sep 17 00:00:00 2001 From: bosh-code Date: Mon, 24 Mar 2025 16:45:49 +1300 Subject: [PATCH 2/7] remove @types/marked --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index be37766..61101c4 100755 --- a/package.json +++ b/package.json @@ -41,7 +41,6 @@ "@tailwindcss/forms": "^0.5.10", "@tailwindcss/typography": "^0.5.16", "@tailwindcss/vite": "^4.0.6", - "@types/marked": "^6.0.0", "@types/node": "22.13.4", "@types/react": "19.0.9", "@types/react-dom": "19.0.3", From 7e96119c1a00c3bbd3c5e231c34b0ca58d50cc0b Mon Sep 17 00:00:00 2001 From: bosh-code Date: Mon, 24 Mar 2025 16:48:34 +1300 Subject: [PATCH 3/7] refactor jsonGenerator.js to be esmodule --- scripts/jsonGenerator.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/scripts/jsonGenerator.js b/scripts/jsonGenerator.js index 8aee1ac..28bc69b 100644 --- a/scripts/jsonGenerator.js +++ b/scripts/jsonGenerator.js @@ -1,6 +1,6 @@ -const fs = require("fs"); -const path = require("path"); -const matter = require("gray-matter"); +import fs from "node:fs"; +import path from "node:path"; +import matter from "gray-matter"; const CONTENT_DEPTH = 2; const JSON_FOLDER = "./.json"; @@ -41,10 +41,7 @@ const getData = (folder, groupDepth) => { } }); - const publishedPages = getPaths.filter( - (page) => !page.frontmatter?.draft && page, - ); - return publishedPages; + return getPaths.filter((page) => !page.frontmatter?.draft && page); }; try { @@ -60,7 +57,8 @@ try { ); // merger json files for search - const posts = require(`../${JSON_FOLDER}/posts.json`); + const postsPath = new URL(`../${JSON_FOLDER}/posts.json`, import.meta.url); + const posts = JSON.parse(fs.readFileSync(postsPath, "utf8")); const search = [...posts]; fs.writeFileSync(`${JSON_FOLDER}/search.json`, JSON.stringify(search)); } catch (err) { From e2dfb162dad656c3f79856927d9dd4d8bdc2ed03 Mon Sep 17 00:00:00 2001 From: bosh-code Date: Mon, 24 Mar 2025 16:48:46 +1300 Subject: [PATCH 4/7] add type module to package json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 61101c4..b1046a2 100755 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "Astro and Tailwindcss boilerplate", "author": "zeon.studio", "license": "MIT", + "type": "module", "packageManager": "yarn@1.22.22", "scripts": { "dev": "yarn generate-json && astro dev", From d134319604392d34614aefe6963dc776f91347ca Mon Sep 17 00:00:00 2001 From: bosh-code Date: Mon, 24 Mar 2025 16:50:05 +1300 Subject: [PATCH 5/7] run @astrojs/upgrade --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index b1046a2..e8e1879 100755 --- a/package.json +++ b/package.json @@ -17,11 +17,11 @@ }, "dependencies": { "@astrojs/check": "0.9.4", - "@astrojs/mdx": "4.0.8", - "@astrojs/react": "4.2.0", + "@astrojs/mdx": "4.2.1", + "@astrojs/react": "4.2.1", "@astrojs/rss": "4.0.11", - "@astrojs/sitemap": "3.2.1", - "astro": "5.3.0", + "@astrojs/sitemap": "3.3.0", + "astro": "5.5.4", "astro-auto-import": "^0.4.4", "astro-font": "^1.0.0", "date-fns": "^4.1.0", From 49b3d4822bf9c32eef0690cdea9dd5542e86b43d Mon Sep 17 00:00:00 2001 From: bosh-code Date: Mon, 24 Mar 2025 16:51:02 +1300 Subject: [PATCH 6/7] bump package version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e8e1879..a5b9853 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "astroplate", - "version": "5.2.0", + "version": "5.3.0", "description": "Astro and Tailwindcss boilerplate", "author": "zeon.studio", "license": "MIT", From 99e4a2af5013a2b1fc2b9084c681943d9aa251e8 Mon Sep 17 00:00:00 2001 From: bosh-code Date: Mon, 24 Mar 2025 16:55:49 +1300 Subject: [PATCH 7/7] update readme.md --- readme.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/readme.md b/readme.md index 0bbcaec..a9e78f2 100755 --- a/readme.md +++ b/readme.md @@ -10,8 +10,8 @@

- - + + Astro Version 5.5 @@ -66,27 +66,27 @@ ### 📦 Dependencies -- astro v5.1+ +- astro v5.5+ - node v20.10+ -- npm v10.2+ -- tailwind v3.4+ +- yarn v1.22+ +- tailwind v4+ ### 👉 Install Dependencies ```bash -npm install +yarn install ``` ### 👉 Development Command ```bash -npm run dev +yarn run dev ``` ### 👉 Build Command ```bash -npm run build +yarn run build ``` ### 👉 Build and Run With Docker