-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
218 lines (218 loc) · 7.35 KB
/
package.json
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
{
"name": "wordwyrm",
"displayName": "Wordwyrm",
"description": "A cross-platform desktop app for tracking what books you've read and when.",
"version": "1.35.5",
"main": "dist/electron/electron/main.js",
"publishConfig": {
"access": "public"
},
"license": "GPL-3.0-or-later",
"author": {
"name": "Emma Litwa-Vulcu",
"email": "[email protected]"
},
"homepage": "https://github.com/reiniiriarios/wordwyrm#readme",
"bugs": {
"url": "https://github.com/reiniiriarios/wordwyrm/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/reiniiriarios/wordwyrm.git"
},
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"lint:js": "eslint .",
"lint:scss": "stylelint frontend/**/*.{scss,svelte}",
"lint": "npm run lint:js && npm run lint:scss",
"dev": "cross-env WYRM_ENV=dev rollup -c -w",
"dev:electron:build": "npm run set:build dev && cross-env WYRM_ENV=dev tsc -p ./electron/tsconfig.json",
"dev:electron": "npm run dev:electron:build && cross-env WYRM_ENV=dev electron ./dist/electron/electron/main.js",
"dev:electron:ss": "npm run dev:electron:build && cross-env WYRM_ENV=screenshot electron ./dist/electron/electron/main.js",
"start": "sirv dist",
"start:electron": "electron ./dist/electron/electron/main.js",
"clean": "ts-node scripts/rmdist.ts",
"set:build": "ts-node scripts/setBuildEnv.ts",
"build:icons": "asset-resizer parse && png2icons assets/icons/512x512.png assets/icons/icon -allwe -hm",
"build:icons:appx": "asset-resizer parse --config=assetresizer.appx.config.mjs",
"build:client": "ts-node scripts/rmdist.ts && npm run build:icons && cross-env WYRM_ENV=prod rollup -c",
"build:electron": "cross-env WYRM_ENV=prod tsc -p ./electron/tsconfig.json",
"build:mac": "npm run set:build dmg && npm run build:electron && electron-builder --mac dmg",
"build:win": "npm run set:build win && npm run build:electron && electron-builder --win portable",
"build:nsis": "npm run set:build nsis && npm run build:electron && electron-builder --win nsis",
"build:appx": "npm run set:build appx && npm run build:electron && npm run build:icons:appx && electron-builder --dir --win appx",
"build:deb": "npm run set:build deb && npm run build:electron && electron-builder --linux deb",
"build:linux": "npm run set:build linux && npm run build:electron && electron-builder --linux appImage deb rpm",
"build:snap": "npm run set:build snap && npm run build:electron && electron-builder --linux snap --publish onTag",
"test": "cross-env WYRM_ENV=test wdio run ./wdio.conf.ts",
"test:pages": "cross-env WYRM_ENV=test wdio run ./wdio.conf.ts --suite pages",
"test:editbook": "cross-env WYRM_ENV=test wdio run ./wdio.conf.ts --suite editbook",
"test:addbook": "cross-env WYRM_ENV=test wdio run ./wdio.conf.ts --suite addbook",
"test:settings": "cross-env WYRM_ENV=test wdio run ./wdio.conf.ts --suite settings",
"bump": "newver --commit --tag --prefix=\"chore(release)\"",
"prepare": "ts-patch install -s && npm run set:build dev"
},
"dependencies": {
"chart.js": "^4.4.2",
"croppie": "^2.6.5",
"electron-fetch": "^1.9.1",
"electron-log": "^5.1.2",
"electron-updater": "^6.1.8",
"fs-extra": "^11.2.0",
"js-yaml": "^4.1.0",
"json": "^11.0.0",
"node-html-markdown": "^1.3.0",
"phosphor-svelte": "^2.0.1",
"sharp": "^0.33.3",
"svelte-spa-router": "^4.0.1"
},
"devDependencies": {
"@naholyr/cross-env": "^1.0.0",
"@reiniiriarios/newver": "^1.1.0",
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@types/croppie": "^2.6.4",
"@types/js-yaml": "^4.0.9",
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.7",
"@types/shelljs": "^0.8.15",
"@types/yargs": "^17.0.32",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"@wdio/cli": "^8.36.1",
"@wdio/local-runner": "^8.36.1",
"@wdio/mocha-framework": "^8.36.1",
"@wdio/spec-reporter": "^8.36.1",
"asset-resizer": "^1.1.1",
"electron": "^29.1.5",
"electron-builder": "^24.13.3",
"electron-chromedriver": "~29.0.0",
"electron-debug": "^3.2.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.38.0",
"png2icons": "^2.0.1",
"postcss": "^8.4.38",
"postcss-html": "^1.6.0",
"postcss-load-config": "^5.0.3",
"prettier": "^3.2.5",
"replace-in-file": "^7.1.0",
"rollup": "^4.17.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-css-only": "^4.5.2",
"rollup-plugin-livereload": "^2.0.5",
"rollup-plugin-polyfill-node": "^0.13.0",
"rollup-plugin-svelte": "^7.2.0",
"rollup-plugin-ts-paths": "^1.0.5",
"sass": "^1.75.0",
"shelljs": "^0.8.5",
"sirv-cli": "^2.0.2",
"stylelint": "^16.4.0",
"stylelint-config-standard-scss": "^13.1.0",
"svelte": "^4.2.15",
"svelte-check": "^3.7.0",
"svelte-eslint-parser": "^0.35.0",
"svelte-file-dropzone": "^2.0.7",
"svelte-preprocess": "^5.1.4",
"ts-node": "^10.9.2",
"ts-patch": "^3.1.2",
"typescript": "^5.4.5",
"typescript-eslint": "^7.7.1",
"typescript-transform-paths": "^3.4.7",
"wdio-electron-service": "^6.4.1"
},
"overrides": {
"cacheable-request": "^8.3.1"
},
"build": {
"productName": "Wordwyrm",
"appId": "me.reinii.wordwyrm",
"artifactName": "Wordwyrm-v${version}-${arch}.${ext}",
"icon": "./icons/512x512.png",
"directories": {
"output": "build",
"buildResources": "assets/"
},
"files": [
"dist"
],
"asar": true,
"asarUnpack": [
"node_modules/sharp/**/*",
"node_modules/@img/**/*"
],
"win": {
"icon": "./assets/icons/icon.ico"
},
"mac": {
"icon": "./assets/icons/icon.icns",
"category": "public.app-category.lifestyle"
},
"nsis": {
"artifactName": "Wordwyrm-v${version}-${arch}-installer.${ext}",
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"createDesktopShortcut": true,
"installerSidebar": "./dist/installerSidebar.bmp"
},
"dmg": {
"contents": [
{
"x": 110,
"y": 150
},
{
"x": 240,
"y": 150,
"type": "link",
"path": "/Applications"
}
]
},
"linux": {
"icon": "./assets/icons/",
"category": "Office",
"target": [
"deb",
"rpm",
"AppImage"
],
"desktop": {
"StartupWMClass": "${productName}"
}
},
"snap": {
"artifactName": "wordwyrm-${version}-${arch}.${ext}",
"summary": "${description}",
"publish": [
{
"provider": "snapStore",
"repo": "wordwyrm",
"channels": [
"edge"
]
}
]
},
"appx": {
"applicationId": "Wordwyrm",
"displayName": "Wordwyrm",
"identityName": "EmmaLitwa-Vulcu.Wordwyrm",
"publisher": "CN=3A8B45F9-A537-470B-A2BD-654DC9A01BF0",
"publisherDisplayName": "Emma Litwa-Vulcu",
"backgroundColor": "transparent",
"showNameOnTiles": true
}
},
"keywords": [
"books",
"reading",
"reading-list",
"novels"
]
}