Files
menav/package.json
rbetree 387cd2492e 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
2025-12-28 00:22:54 +08:00

46 lines
1.7 KiB
JSON

{
"name": "menav",
"version": "1.3.0",
"description": "A personal navigation website",
"main": "src/generator.js",
"homepage": "https://rbetree.github.io/menav",
"scripts": {
"generate": "node src/generator.js",
"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\"",
"format": "prettier --write \"src/**/*.js\" \"scripts/**/*.js\" \"test/**/*.js\" \".github/**/*.yml\" \"*.{md,json}\" \"config/**/*.md\" \"config/**/*.yml\"",
"format:check": "prettier --check \"src/**/*.js\" \"scripts/**/*.js\" \"test/**/*.js\" \".github/**/*.yml\" \"*.{md,json}\" \"config/**/*.md\" \"config/**/*.yml\"",
"check": "npm run lint && npm test && npm run build"
},
"keywords": [
"navigation",
"website",
"personal"
],
"author": "Your Name",
"license": "AGPL-3.0-only",
"dependencies": {
"js-yaml": "^4.1.1",
"handlebars": "^4.7.8",
"ansi-regex": "^6.0.1",
"ansi-styles": "^6.2.1",
"supports-color": "^9.4.0",
"has-flag": "^5.0.1",
"color-convert": "^2.0.1",
"color-name": "^2.0.0",
"mime-db": "^1.52.0",
"rss-parser": "^3.13.0"
},
"devDependencies": {
"prettier": "^3.4.2",
"serve": "^14.2.5"
}
}