Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
54 lines (54 loc) · 3.13 KB
/
Copy pathpackage.json
File metadata and controls
54 lines (54 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"name": "papyrus",
"version": "2.0.0",
"description": "Papyrus Desktop - A modern note-taking and learning application",
"main": "electron/main.js",
"author": "LiYuanStudio",
"license": "MIT",
"private": false,
"scripts": {
"predev": "node scripts/kill-ports.js",
"dev": "concurrently -k -n BACKEND,FRONTEND -c cyan,magenta \"cd backend && npm run dev\" \"cd frontend && npm run dev\"",
"dev:frontend": "cd frontend && npm run dev",
"dev:electron": "node scripts/build-electron.js dev",
"dev:backend": "cd backend && npm run dev",
"electron:dev": "node scripts/build-electron.js dev",
"electron:build": "node scripts/build-electron.js build",
"electron:build:win": "node scripts/build-electron.js build:win",
"electron:build:mac": "node scripts/build-electron.js build:mac",
"electron:build:linux": "node scripts/build-electron.js build:linux",
"build:frontend": "cd frontend && npm run build",
"build:backend": "cd backend && npm run build",
"postinstall": "cd frontend && npm install && cd ../backend && npm install",
"sync-version": "node scripts/sync-version.js",
"bump:patch": "node scripts/bump-version.js patch",
"bump:minor": "node scripts/bump-version.js minor",
"bump:major": "node scripts/bump-version.js major",
"bump:beta": "node scripts/bump-version.js beta",
"bump:release": "node scripts/bump-version.js release",
"test:bump": "node --test scripts/__tests__/bump-version.test.js",
"test:frontend:sidebar": "node ./backend/node_modules/tsx/dist/cli.mjs --tsconfig frontend/tsconfig.json --test frontend/src/components/SidebarChatHistory.test.tsx",
"test:frontend:ai-title": "node ./backend/node_modules/tsx/dist/cli.mjs --tsconfig frontend/tsconfig.json --test frontend/src/components/SidebarChatHistory.test.tsx frontend/src/SettingsPage/views/ChatView/components/ModelsSection.test.tsx frontend/src/locales/aiTitleKeys.test.ts",
"test:frontend:platform": "node ./backend/node_modules/tsx/dist/cli.mjs --tsconfig frontend/tsconfig.json --test frontend/src/utils/platform.test.ts",
"test:frontend:version-control": "node ./backend/node_modules/tsx/dist/cli.mjs --tsconfig frontend/tsconfig.json --test frontend/src/SettingsPage/components/KnowledgeVersionItem.test.tsx",
"test:electron:macos": "node --test scripts/__tests__/macos-platform.test.js scripts/__tests__/electron-security-validators.test.js",
"test:e2e": "playwright test --config e2e/playwright.config.ts",
"build:installer": "npm run sync-version && npm run build:backend && npm run build:frontend && electron-builder --win nsis --x64 --publish=never --config .electron-builder.config.js",
"generate-icons": "node tools/generate-icons.js",
"generate-cert": "powershell -ExecutionPolicy Bypass -File build/create-cert.ps1",
"set-version": "node scripts/set-version.js"
},
"devDependencies": {
"@fiahfy/icns": "^0.0.7",
"@playwright/test": "^1.59.1",
"concurrently": "^8.2.2",
"electron": "^41.1.0",
"electron-builder": "^26.8.1",
"png-to-ico": "^3.0.1",
"semver": "^7.7.4",
"sharp": "^0.35.3"
},
"dependencies": {
"wait-on": "^9.0.5"
}
}