- fix: useCodeMirror onChange闭包过期导致编辑器内容丢失同步(P0) - feat: 全部组件添加displayName(React DevTools调试支持) - feat: 全部组件添加ARIA属性(WCAG无障碍支持) - fix: App异步操作添加try-catch错误边界 - fix: tabStore空catch块添加错误日志 - fix: sidebarStore Set→string[](Zustand可序列化) - fix: useDragDrop readFile错误处理+空文件修复 - fix: useSettings/useTheme load()添加错误处理 - fix: useTheme toggleDarkMode引用优化 - chore: 版本号升级至0.1.1
101 lines
2.5 KiB
JSON
101 lines
2.5 KiB
JSON
{
|
|
"name": "marklite",
|
|
"version": "0.1.1",
|
|
"description": "Lightweight Markdown Editor for Windows",
|
|
"main": "./dist/main/index.js",
|
|
"scripts": {
|
|
"dev": "electron-vite dev",
|
|
"build": "electron-vite build && electron-builder --win",
|
|
"build:portable": "electron-vite build && electron-builder --win portable",
|
|
"lint": "eslint src --ext .ts,.tsx",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"author": "MarkLite",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@codemirror/commands": "^6.10.3",
|
|
"@codemirror/lang-markdown": "^6.5.0",
|
|
"@codemirror/language": "^6.12.3",
|
|
"@codemirror/search": "^6.7.0",
|
|
"@codemirror/state": "^6.6.0",
|
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
"@codemirror/view": "^6.43.0",
|
|
"dexie": "^4.0.11",
|
|
"nanoid": "^5.1.5",
|
|
"react": "^18.3.1",
|
|
"react-dom": "^18.3.1",
|
|
"rehype-highlight": "^7.0.2",
|
|
"rehype-raw": "^7.0.0",
|
|
"rehype-sanitize": "^6.0.0",
|
|
"rehype-stringify": "^10.0.0",
|
|
"remark-gfm": "^4.0.1",
|
|
"remark-parse": "^11.0.0",
|
|
"remark-rehype": "^11.1.2",
|
|
"unified": "^11.0.5",
|
|
"unist-util-visit": "^5.1.0",
|
|
"zustand": "^5.0.6"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^18.3.18",
|
|
"@types/react-dom": "^18.3.5",
|
|
"@typescript-eslint/eslint-plugin": "^8.26.1",
|
|
"@vitejs/plugin-react": "^4.3.4",
|
|
"electron": "^28.3.3",
|
|
"electron-builder": "^25.1.8",
|
|
"electron-vite": "^3.0.0",
|
|
"eslint": "^9.22.0",
|
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
"typescript": "^5.6.3"
|
|
},
|
|
"build": {
|
|
"appId": "com.marklite.app",
|
|
"productName": "MarkLite",
|
|
"directories": {
|
|
"output": "dist"
|
|
},
|
|
"files": [
|
|
"dist/**/*",
|
|
"assets/**/*"
|
|
],
|
|
"win": {
|
|
"target": [
|
|
{
|
|
"target": "nsis",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
}
|
|
],
|
|
"icon": "assets/icon.ico"
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"allowToChangeInstallationDirectory": true,
|
|
"createDesktopShortcut": true,
|
|
"createStartMenuShortcut": true,
|
|
"shortcutName": "MarkLite"
|
|
},
|
|
"fileAssociations": [
|
|
{
|
|
"ext": "md",
|
|
"name": "Markdown",
|
|
"description": "Markdown File",
|
|
"icon": "assets/icon.ico"
|
|
},
|
|
{
|
|
"ext": "markdown",
|
|
"name": "Markdown",
|
|
"description": "Markdown File",
|
|
"icon": "assets/icon.ico"
|
|
},
|
|
{
|
|
"ext": "txt",
|
|
"name": "Text",
|
|
"description": "Text File",
|
|
"icon": "assets/icon.ico"
|
|
}
|
|
]
|
|
}
|
|
}
|