feat: 页面模板差异化改进 + 配置优化 + 兼容清理 (#29)
- 首页判定:navigation 第一项 - 模板:page/projects/articles/bookmarks/search-results - bookmarks:update: YYYY-MM-DD | from: git|mtime - articles:RSS 聚合只读条目 + 分类聚合 + 影子写回结构 - projects:repo 卡片 + 可选热力图 + 自动抓取元信息 - 工作流:构建前 sync + schedule 定时刷新 - 移除兼容:config.yml/config.yaml、navigation.yml、home 特例 - 迁移说明:config/update-instructions.md
This commit is contained in:
@@ -6,9 +6,12 @@
|
||||
"homepage": "https://rbetree.github.io/menav",
|
||||
"scripts": {
|
||||
"generate": "node src/generator.js",
|
||||
"dev": "node src/generator.js && serve dist -l 5173",
|
||||
"dev": "npm run sync-projects && npm run sync-articles && node src/generator.js && serve dist -l 5173",
|
||||
"dev:offline": "node src/generator.js && serve dist -l 5173",
|
||||
"clean": "node ./scripts/clean.js",
|
||||
"build": "npm run clean && npm run generate",
|
||||
"sync-articles": "node ./scripts/sync-articles.js",
|
||||
"sync-projects": "node ./scripts/sync-projects.js",
|
||||
"import-bookmarks": "node src/bookmark-processor.js",
|
||||
"test": "node --test test/*.js",
|
||||
"lint": "node --check \"src/generator.js\" && node --check \"src/bookmark-processor.js\" && node --check \"src/script.js\"",
|
||||
@@ -32,7 +35,8 @@
|
||||
"has-flag": "^5.0.1",
|
||||
"color-convert": "^2.0.1",
|
||||
"color-name": "^2.0.0",
|
||||
"mime-db": "^1.52.0"
|
||||
"mime-db": "^1.52.0",
|
||||
"rss-parser": "^3.13.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^3.4.2",
|
||||
|
||||
Reference in New Issue
Block a user