-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
121 lines (121 loc) · 3.38 KB
/
Copy pathpackage.json
File metadata and controls
121 lines (121 loc) · 3.38 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
{
"name": "wordtree",
"version": "1.0.0",
"private": true,
"main": "electron/main.js",
"author": "WordTree",
"description": "Local-first English vocabulary learning app with cards, timed spelling, word-family trees, and practice records.",
"scripts": {
"serve": "python3 -m http.server 8766 --bind 127.0.0.1",
"desktop:start": "electron .",
"desktop:icon": "node scripts/create-mac-icon.mjs",
"desktop:icon:win": "node scripts/create-windows-assets.mjs",
"desktop:assets": "npm run desktop:icon && npm run desktop:icon:win",
"desktop:pack": "electron-builder --dir",
"desktop:dist": "electron-builder",
"desktop:dist:mac": "electron-builder --mac pkg",
"desktop:dist:mac:all": "electron-builder --mac pkg dmg",
"desktop:dist:win": "npm run desktop:icon:win && electron-builder --win nsis --x64",
"android:prepare": "node scripts/prepare-capacitor-web.mjs",
"android:icon": "node scripts/create-android-icons.mjs",
"android:sync": "npm run android:prepare && cap sync android",
"android:open": "npm run android:sync && cap open android",
"android:run": "npm run android:sync && cap run android",
"validate": "node scripts/validate-data.js",
"import:vocabulary": "node scripts/import-kylebing-vocabulary.js",
"generate:families": "node scripts/generate-imported-families.js"
},
"devDependencies": {
"@capacitor/cli": "^8.3.4",
"electron": "42.2.0",
"electron-builder": "26.8.1"
},
"build": {
"appId": "com.wordtree.vocabulary",
"productName": "WordTree",
"copyright": "Copyright © 2026 WordTree",
"asar": true,
"directories": {
"output": "dist"
},
"files": [
"index.html",
"styles.css",
"app.js",
"assets/**/*",
"data/**/*",
"electron/**/*",
"docs/**/*",
"README.md",
"DATA_GUIDE.md"
],
"mac": {
"category": "public.app-category.education",
"icon": "build/icon.icns",
"identity": null,
"target": [
{
"target": "pkg",
"arch": [
"arm64",
"x64"
]
},
{
"target": "dmg",
"arch": [
"arm64",
"x64"
]
}
]
},
"pkg": {
"installLocation": "/Applications"
},
"dmg": {
"contents": [
{
"x": 130,
"y": 220
},
{
"x": 410,
"y": 220,
"type": "link",
"path": "/Applications"
}
]
},
"win": {
"icon": "build/icon.ico",
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
}
]
},
"nsis": {
"artifactName": "${productName}-Setup-${version}-${arch}.${ext}",
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"createStartMenuShortcut": true,
"shortcutName": "WordTree",
"installerIcon": "build/icon.ico",
"uninstallerIcon": "build/icon.ico",
"installerSidebar": "build/windows-installer-sidebar.bmp",
"uninstallerSidebar": "build/windows-installer-sidebar.bmp",
"installerHeader": "build/windows-installer-header.bmp",
"deleteAppDataOnUninstall": false
}
},
"dependencies": {
"@capacitor/android": "^8.3.4",
"@capacitor/core": "^8.3.4"
}
}