Phase 6 (Bonus): Watcher-Mode (--watch): - src/cli/ingest.ts: --watch Flag parsed - watchInbox(): chokidar-basiert (robuster als node:fs.watch auf Windows) Debounce 1s, awaitWriteFinish, ignoreInitial, filter Verarbeitet/Problemfaelle Auf Ctrl+C wird sauber beendet - Bug-Fix: 'return' bei files.length===0 war vor dem Watch-Block -> bei leerer Inbox mit --watch startet Watcher trotzdem ESLint + Prettier: - .eslintrc.cjs (deprecated eslintrc-Format, USE_FLAT_CONFIG=false) - .prettierrc mit Standard-Format - package.json scripts: lint, format, format:check - Lint-Fehler in Tests gefixt (try/catch, unused imports) npm audit fix --force: - esbuild 0.24.2 -> neuere Version (via Vite-Update) - vite, vitest auf v5 (breaking change akzeptiert) - 5 vulnerabilities -> 0 Verifiziert: - 50/50 Tests gruen - Watcher E2E: Notiz in 00_Inbox/ waehrend --watch -> Wiki erstellt, verarbeitet - Lint: 0 Fehler (nur Deprecation-Warnung fuer eslintrc-Format) Dependencies: chokidar (neu)
61 lines
1.6 KiB
JSON
61 lines
1.6 KiB
JSON
{
|
|
"name": "mindomat",
|
|
"version": "0.1.0",
|
|
"description": "Lokales Second-Brain-System für Obsidian-kompatible Markdown-Vaults",
|
|
"type": "module",
|
|
"bin": {
|
|
"mindomat": "./bin/mindomat.mjs"
|
|
},
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
}
|
|
},
|
|
"files": [
|
|
"bin",
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsc --watch",
|
|
"test": "vitest run",
|
|
"test:watch": "vitest",
|
|
"lint": "cross-env ESLINT_USE_FLAT_CONFIG=false eslint src/ tests/ --ext .ts",
|
|
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\" \"webapp/src/**/*.{ts,tsx}\"",
|
|
"format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\" \"webapp/src/**/*.{ts,tsx}\"",
|
|
"init-vault": "npm run build && node bin/mindomat.mjs init-vault",
|
|
"index": "npm run build && node bin/mindomat.mjs index",
|
|
"ingest": "npm run build && node bin/mindomat.mjs ingest",
|
|
"sync": "npm run build && node bin/mindomat.mjs sync"
|
|
},
|
|
"keywords": [
|
|
"second-brain",
|
|
"obsidian",
|
|
"markdown",
|
|
"knowledge-management",
|
|
"pkm"
|
|
],
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=22.0.0"
|
|
},
|
|
"dependencies": {
|
|
"gray-matter": "^4.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.69.0",
|
|
"@typescript-eslint/parser": "^8.69.0",
|
|
"chokidar": "^5.0.0",
|
|
"eslint": "^9.39.5",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"prettier": "^3.9.6",
|
|
"typescript": "^5.6.0",
|
|
"vitest": "^5.0.0"
|
|
}
|
|
}
|