Files
Mind-o-Mat/package.json
T
Jannik fb954fff1d
CI / test (push) Canceled after 0s
CI / webapp (push) Canceled after 0s
v2.0.6: jsdom + Notes-Api-Client-Tests (Phase 4.1)
- jsdom + @testing/react als dev-Dependencies
- vitest.config.mjs: environmentMatchGlobs fuer *.webapp.* und sync-queue Tests
- tests/webapp/notes-api-client.test.ts: 9 Tests
  - loadNote: 404 -> null, 200 -> parsed, 500 -> throws
  - URL-Encoding: Leerzeichen in noteId
  - saveNote: PUT mit Content-Type, Body korrekt
  - triggerSync: 200 -> ok, 500 -> throws
  - listNotes: parst Notes-Liste, Fehlerfall

Verifiziert:
- 88/88 Tests gruen (9 neue fuer notes-api Client)
- Tool + Webapp Builds OK
2026-09-05 12:40:02 +02:00

63 lines
1.7 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": {
"@testing-library/react": "^16.3.3",
"@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",
"jsdom": "^30.0.1",
"prettier": "^3.9.6",
"typescript": "^5.6.0",
"vitest": "^5.0.0"
}
}