-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
182 lines (182 loc) · 7.24 KB
/
Copy pathpackage.json
File metadata and controls
182 lines (182 loc) · 7.24 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
{
"name": "calenrecall",
"version": "2026.07.21-2",
"description": "A calendar journal for recalling memories across decades, years, months, weeks, and days",
"main": "dist-electron/main.js",
"author": "",
"license": "MIT",
"scripts": {
"postinstall": "electron-rebuild -f -w better-sqlite3",
"dev": "npm run rebuild && npm run build:electron && concurrently \"npm run dev:react\" \"npm run watch:electron\" \"npm run dev:electron\"",
"dev:react": "vite",
"dev:electron": "wait-on http://localhost:5173 && electron .",
"watch:electron": "tsc -p electron --watch",
"rebuild": "electron-rebuild -f -w better-sqlite3",
"build": "npm run rebuild && npm run build:react && npm run build:electron",
"build:react": "vite build",
"build:electron": "tsc -p electron",
"version:auto": "node scripts/auto-version.js",
"clean:release": "node scripts/clean-release.js",
"dist": "npm run version:auto && npm run build && npm run clean:release && electron-builder && node scripts/fix-artifact-names.js",
"dist:win": "npm run version:auto && npm run build && npm run clean:release && electron-builder --win --x64 && node scripts/fix-artifact-names.js && npm run open:release",
"dist:win:pack": "npm run version:auto && npm run clean:release && npm run dist:win:pack:prebuild && npm run dist:win:pack:nsis && npm run dist:win:pack:cleanup && npm run dist:win:pack:portable",
"dist:win:pack:prebuild": "node scripts/pre-build-cleanup.js",
"dist:win:pack:nsis": "electron-builder --win nsis --x64 && node scripts/fix-artifact-names.js",
"dist:win:pack:portable": "electron-builder --win portable --x64 && node scripts/fix-artifact-names.js",
"dist:win:pack:cleanup": "node scripts/clean-release-partial.js",
"dist:win:installer": "npm run version:auto && npm run build && npm run clean:release && electron-builder --win nsis --x64 && node scripts/fix-artifact-names.js && npm run open:release",
"dist:win:portable": "npm run version:auto && npm run build && npm run clean:release && electron-builder --win portable --x64 && node scripts/fix-artifact-names.js && npm run open:release",
"dist:win:current": "npm run build && npm run clean:release && electron-builder --win --x64 && node scripts/fix-artifact-names.js && npm run open:release",
"dist:mac": "npm run version:auto && npm run build && npm run clean:release && electron-builder --mac && node scripts/fix-artifact-names.js && npm run open:release",
"dist:mac:dmg": "npm run version:auto && npm run build && npm run clean:release && electron-builder --mac dmg && node scripts/fix-artifact-names.js && npm run open:release",
"dist:mac:zip": "npm run version:auto && npm run build && npm run clean:release && electron-builder --mac zip && node scripts/fix-artifact-names.js && npm run open:release",
"dist:mac:universal": "npm run version:auto && npm run build && npm run clean:release && electron-builder --mac --x64 --arm64 && node scripts/fix-artifact-names.js && npm run open:release",
"dist:mac:current": "npm run build && npm run clean:release && electron-builder --mac dmg && node scripts/fix-artifact-names.js && npm run open:release",
"open:release": "node scripts/open-release.js",
"preview": "vite preview",
"version:show": "node -p \"require('./package.json').version\"",
"generate:icon": "node scripts/generate-icon.js",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"test:calendars": "ts-node --project scripts/tsconfig.json scripts/test-calendar-accuracy.ts",
"test:epochs": "ts-node --project scripts/tsconfig.json scripts/verify-epochs.ts",
"test:chinese": "ts-node --project scripts/tsconfig.json scripts/verify-chinese-calendar.ts"
},
"dependencies": {
"@fontsource/antonio": "^5.2.8",
"@fontsource/bebas-neue": "^5.2.7",
"@fontsource/inter": "^5.2.8",
"@fontsource/noto-sans": "^5.2.10",
"@fontsource/noto-sans-arabic": "^5.2.10",
"@fontsource/noto-sans-hebrew": "^5.2.8",
"@fontsource/noto-sans-sc": "^5.2.8",
"@fontsource/noto-sans-thai": "^5.2.8",
"archiver": "^7.0.1",
"better-sqlite3": "^12.5.0",
"date-fns": "^3.0.0",
"electron-updater": "^6.1.8",
"pdfkit": "^0.14.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@electron/rebuild": "^3.7.2",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.5.1",
"@types/archiver": "^7.0.0",
"@types/better-sqlite3": "^7.6.13",
"@types/jest": "^29.5.11",
"@types/node": "^20.19.25",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^4.2.1",
"concurrently": "^8.2.2",
"dotenv": "^16.4.5",
"electron": "^39.2.5",
"electron-builder": "^24.9.1",
"identity-obj-proxy": "^3.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"semver": "^7.6.3",
"sharp": "^0.34.5",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"typescript": "^5.3.3",
"vite": "^7.2.7",
"wait-on": "^7.2.0"
},
"build": {
"appId": "com.calenrecall.app",
"productName": "CalenRecall",
"directories": {
"output": "release"
},
"icon": "assets/icon-1024.png",
"files": [
"dist/**/*",
"dist-electron/**/*",
"assets/**/*",
"node_modules/**/*"
],
"artifactName": "${productName}-${version}-${arch}.${ext}",
"afterSign": "scripts/notarize.js",
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
},
{
"target": "portable",
"arch": [
"x64"
]
}
]
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"deleteAppDataOnUninstall": false,
"warningsAsErrors": false
},
"mac": {
"icon": "assets/icon-1024.png",
"target": [
{
"target": "dmg",
"arch": [
"x64",
"arm64"
]
},
{
"target": "zip",
"arch": [
"x64",
"arm64"
]
}
],
"artifactName": "${productName}-${version}-${arch}.${ext}",
"category": "public.app-category.productivity",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "build/entitlements.mac.plist",
"entitlementsInherit": "build/entitlements.mac.plist",
"notarize": false,
"extendInfo": {
"NSCameraUsageDescription": "CalenRecall does not use the camera.",
"NSMicrophoneUsageDescription": "CalenRecall does not use the microphone.",
"NSDocumentsFolderUsageDescription": "CalenRecall needs access to export and import journal data."
}
},
"dmg": {
"title": "${productName} ${version}",
"icon": "assets/icon-512.png",
"iconSize": 100,
"contents": [
{
"x": 130,
"y": 180,
"type": "file"
},
{
"x": 410,
"y": 180,
"type": "link",
"path": "/Applications"
}
],
"window": {
"width": 540,
"height": 380
},
"artifactName": "${productName}-${version}-${arch}.dmg"
}
}
}