chore: 引入统一日志模块,统一 cli 输出

This commit is contained in:
rbetree
2026-01-16 17:29:05 +08:00
parent f2f59108a0
commit 87d1f0244c
26 changed files with 903 additions and 150 deletions

View File

@@ -6,19 +6,19 @@
"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",
"dev": "node ./scripts/dev.js",
"dev:offline": "node ./scripts/dev-offline.js",
"clean": "node ./scripts/clean.js",
"build": "npm run clean && npm run generate",
"build": "node ./scripts/build.js",
"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",
"test": "node ./scripts/test.js",
"lint": "node ./scripts/lint.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\"",
"format": "node ./scripts/format.js --write",
"format:check": "node ./scripts/format.js --check",
"format:check:changed": "node ./scripts/format-check-changed.js",
"check": "npm run lint && npm test && npm run build",
"check": "node ./scripts/check.js",
"prepare": "husky"
},
"keywords": [