add a script for update

This commit is contained in:
kbe
2025-08-19 23:48:30 +02:00
parent 98f639b913
commit ef7951c1e4
38 changed files with 229 additions and 29 deletions

View File

@@ -2,13 +2,12 @@
"name": "hugo-wordpress-blog",
"version": "1.0.0",
"description": "Hugo static site with WordPress content",
"license": "MIT",
"scripts": {
"fetch-data": "node scripts/fetch-wordpress.js",
"generate-content": "node scripts/generate-content.js",
"prebuild": "npm run fetch-data && npm run generate-content",
"build": "npm run build:css && hugo --minify",
"build:css": "sass assets/css/scss:static/assets/css",
"dev": "npm run fetch-data && npm run generate-content && npm run build:css && hugo server -D",
"clean": "rm -rf data/wordpress content/posts public"
},
"dependencies": {
@@ -16,6 +15,7 @@
"node-fetch": "^3.3.2"
},
"devDependencies": {
"yarn": "^1.22.22",
"sass": "^1.69.5"
}
}
}