-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
97 lines (97 loc) · 2.78 KB
/
package.json
File metadata and controls
97 lines (97 loc) · 2.78 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
{
"name": "trama",
"private": true,
"version": "0.9.3-alpha",
"description": "Desktop app for writing and structuring long-form narrative projects.",
"author": "luisoncpp",
"license": "GPL-3.0-or-later",
"type": "module",
"main": "dist-electron/electron/main.js",
"scripts": {
"dev": "npm run build:electron && npm run dev:desktop",
"dev:renderer": "vite",
"dev:electron": "cross-env VITE_DEV_SERVER_URL=http://localhost:5173 electron dist-electron/electron/main.js",
"dev:desktop": "concurrently --names \"renderer,electron\" --success \"command-electron\" --kill-others \"npm run dev:renderer\" \"wait-on http-get://localhost:5173 --timeout 30000 && npm run dev:electron\"",
"build": "tsc -b && vite build && npm run build:electron",
"build:electron": "tsc -p tsconfig.electron.json",
"pack:win": "npm run build && electron-builder --win --dir",
"dist:win": "npm run build && electron-builder --win nsis",
"preview": "vite preview",
"lint": "eslint . --max-warnings 0",
"test": "vitest run --pool 2",
"test:smoke": "npm run build && vitest run tests/electron-smoke.test.ts"
},
"dependencies": {
"@pdf-lib/fontkit": "^1.1.1",
"@types/turndown": "^5.0.6",
"chokidar": "^5.0.0",
"docx": "^9.6.1",
"epub-gen": "^0.1.0",
"marked": "^17.0.5",
"pdf-lib": "^1.17.1",
"preact": "^10.29.0",
"quill": "^2.0.3",
"turndown": "^7.2.4",
"yaml": "^2.8.3",
"zod": "^3.24.2"
},
"devDependencies": {
"@preact/preset-vite": "^2.10.4",
"@tailwindcss/postcss": "^4.2.2",
"@types/jsdom": "^28.0.1",
"@types/node": "^24.12.2",
"@typescript-eslint/parser": "^8.46.1",
"@vitest/coverage-v8": "^4.1.2",
"concurrently": "^9.2.1",
"cross-env": "^10.1.0",
"electron": "^41.1.1",
"electron-builder": "^26.0.12",
"eslint": "^9.38.0",
"jsdom": "^29.0.2",
"postcss": "^8.5.8",
"tailwindcss": "^4.2.2",
"typescript": "~5.9.3",
"vite": "^8.0.1",
"vitest": "^4.1.2",
"wait-on": "^9.0.4"
},
"build": {
"appId": "com.trama.desktop",
"productName": "Trama",
"directories": {
"output": "release"
},
"files": [
"dist/**",
"dist-electron/**",
"node_modules/**",
"package.json"
],
"extraResources": [
{
"from": "example-fantasia",
"to": "example-fantasia"
}
],
"extraMetadata": {
"main": "dist-electron/electron/main.js"
},
"win": {
"signAndEditExecutable": false,
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
],
"artifactName": "Trama-Setup-${version}.${ext}"
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true
}
}
}