feat: modernize static site generator stack
- Upgrade from Node 16 to Node 22
- Replace deprecated node-sass with Dart Sass (sass)
- Migrate to @metalsmith/* scoped packages for markdown, layouts, in-place, collections
- Replace deprecated metalsmith-markdownit with @metalsmith/markdown + Marked
- Replace deprecated metalsmith-in-place v1 with @metalsmith/in-place v5
- Replace deprecated metalsmith-layouts v1 with @metalsmith/layouts v3
- Update @metalsmith/collections to v2
- Use custom permalinks plugin (upstream incompatible with new regexparam)
- Migrate filterRoutes.js to Express 4 compatibility
- Add Handlebars partial preprocessing for inline {{> partial }} in markdown
- Add custom feed generation (replaces deprecated metalsmith-feed)
- Update all other dependencies to latest versions
- Update Dockerfile for Node 22 Alpine
- Update .nvmrc to 22
This commit is contained in:
1 parent
35e9dfe24b
commit
0f021e9672
8 files changed
+592
-231
No files matched your search
+17
-20
@@ -6,30 +6,27 @@
|
||||
"watch": "nodemon --exec npm start -e \"md,html,scss,js\" -i \"build\""
|
||||
},
|
||||
"dependencies": {
|
||||
"compression": "^1.6.2",
|
||||
"express": "^4.13.4",
|
||||
"handlebars": "^4.0.5",
|
||||
"markdown-it-emoji": "^1.1.1",
|
||||
"metalsmith": "^2.1.0",
|
||||
"metalsmith-build-date": "^0.2.0",
|
||||
"metalsmith-collections": "^0.7.0",
|
||||
"metalsmith-define": "^2.0.1",
|
||||
"metalsmith-feed": "^0.2.0",
|
||||
"metalsmith-in-place": "^1.4.4",
|
||||
"metalsmith-layouts": "^1.6.5",
|
||||
"metalsmith-markdownit": "^0.3.0",
|
||||
"metalsmith-pagination": "^1.4.0",
|
||||
"metalsmith-permalinks": "^0.5.0",
|
||||
"metalsmith-sass": "^2.0.0",
|
||||
"@metalsmith/collections": "^2.0.0",
|
||||
"@metalsmith/in-place": "^5.0.0",
|
||||
"@metalsmith/layouts": "^3.0.0",
|
||||
"@metalsmith/markdown": "^1.10.0",
|
||||
"metalsmith-sitemap": "^1.2.2",
|
||||
"moment": "^2.13.0",
|
||||
"node-sass": "^6.0.0",
|
||||
"striptags": "^2.1.1"
|
||||
"compression": "^1.8.2",
|
||||
"express": "^4.21.2",
|
||||
"handlebars": "^4.7.10",
|
||||
"jstransformer-handlebars": "^1.2.0",
|
||||
"marked": "^18.2.0",
|
||||
"metalsmith-define": "^2.1.3",
|
||||
"metalsmith-pagination": "^1.5.0",
|
||||
"moment": "^2.31.0",
|
||||
"rss": "^1.2.2",
|
||||
"sass": "^1.108.2",
|
||||
"striptags": "^3.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nodemon": "^1.12.1"
|
||||
"nodemon": "^3.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "16"
|
||||
"node": "22"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user