-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpackage.json
124 lines (124 loc) · 9.49 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
{
"name": "threema-web-electron",
"scripts": {
"app:install": "cd app && npm install && cd ..",
"app:ci": "cd app && npm ci --cache ../.npm && cd ..",
"app:clean": "rm -rf app/dist && rm -rf app/build",
"app:lint": "FAILED=\"\"; for t in tsc prettier eslint; do npm run app:lint:${t} || FAILED=\"$FAILED $t\"; done; if [ -n \"$FAILED\" ]; then echo \"Failed: $FAILED\"; false; else echo \"All linters passed.\"; fi",
"app:lint:fix": "npm run app:lint:eslint:fix && npm run app:lint:prettier:fix",
"app:lint:tsc": "npm run app:lint:tsc:app && npm run app:lint:tsc:test",
"app:lint:tsc:app": "npx tsc --noEmit -p app/tsconfig.json",
"app:lint:tsc:test": "npx tsc --noEmit -p test/tsconfig.json",
"app:lint:eslint": "eslint . --ext .js,.cjs,.mjs,.ts",
"app:lint:eslint:fix": "eslint . --ext .js,.cjs,.mjs,.ts --fix",
"app:lint:prettier": "prettier -c \"**/*.{js,json,md,ts,yml}\"",
"app:lint:prettier:fix": "prettier --write \"**/*.{js,json,md,ts,yml}\"",
"app:build": "npm run app:build:electron:main && echo 'Use app:build:web to build Threema Web'",
"app:build:web": "cd app/dependencies/threema-web && rm -rf release && npm install --production && npm rebuild node-sass && npm run dist && cd ../..",
"app:build:electron:main": "tsc --build app/tsconfig.json && npm run copy-files",
"copy-files": "copyfiles -u 1 app/src/**/*.json app/dist",
"app:start": "cd app && NODE_ENV=development electron .",
"test": "nyc --reporter=cobertura ts-mocha -p test/tsconfig.json test/**/*.spec.ts --timeout 30000",
"test:junit": "nyc --reporter=cobertura ts-mocha -p test/tsconfig.json --reporter mocha-junit-reporter test/**/*.spec.ts --timeout 30000",
"electron:dist:all": "npm run electron:dist:macos:all && npm run electron:dist:linux:deb:all && npm run electron:dist:linux:rpm:all && npm run electron:dist:windows:all",
"electron:dist:macos": "npm run app:build && node tools/run-dist-electron.js macOS",
"electron:dist:macos:all": "npm run app:build && npm run electron:dist:macos:consumer && npm run electron:dist:macos:work && npm run electron:dist:macos:blue",
"electron:dist:macos:consumer": "npm run electron:dist:macos consumer",
"electron:dist:macos:work": "npm run electron:dist:macos work",
"electron:dist:macos:blue": "npm run electron:dist:macos blue",
"electron:dist:windows": "npm run app:build && node tools/run-dist-electron.js windows",
"electron:dist:windows:all": "npm run app:build && npm run electron:dist:windows:consumer && npm run electron:dist:windows:work && npm run electron:dist:windows:blue",
"electron:dist:windows:consumer": "npm run electron:dist:windows consumer",
"electron:dist:windows:work": "npm run electron:dist:windows work",
"electron:dist:windows:blue": "npm run electron:dist:windows blue",
"electron:dist:linux": "npm run electron:dist:linux:deb && npm run electron:dist:linux:rpm",
"electron:dist:linux:deb": "npm run app:build && node tools/run-dist-electron.js linux-deb",
"electron:dist:linux:deb:all": "npm run app:build && npm run electron:dist:linux:deb:consumer && npm run electron:dist:linux:deb:work && npm run electron:dist:linux:deb:blue ",
"electron:dist:linux:deb:consumer": "npm run electron:dist:linux:deb consumer",
"electron:dist:linux:deb:work": "npm run electron:dist:linux:deb work",
"electron:dist:linux:deb:blue": "npm run electron:dist:linux:deb blue",
"electron:dist:linux:rpm": "npm run app:build && node tools/run-dist-electron.js linux-deb",
"electron:dist:linux:rpm:all": "npm run app:build && npm run electron:dist:linux:rpm:consumer && npm run electron:dist:linux:rpm:work && npm run electron:dist:linux:rpm:blue",
"electron:dist:linux:rpm:consumer": "npm run electron:dist:linux:rpm consumer",
"electron:dist:linux:rpm:work": "npm run electron:dist:linux:rpm work",
"electron:dist:linux:rpm:blue": "npm run electron:dist:linux:rpm blue",
"electron:package:all": "npm run electron:package:macos && npm run electron:package:linux:deb:all && npm run electron:package:linux:rpm:all && npm run electron:package:windows:installer:all",
"electron:package:macos": "npm run electron:package:macos:zip:all && npm run electron:package:macos:dmg:all",
"electron:package:linux": "npm run electron:package:linux:deb && npm run electron:package:linux:rpm",
"electron:package:windows:installer": "node tools/packaging/package-winstaller.js",
"electron:package:windows:installer:all": "npm run electron:package:windows:installer:consumer && npm run electron:package:windows:installer:work && npm run electron:package:windows:installer:blue",
"electron:package:windows:installer:consumer": "npm run electron:package:windows:installer consumer",
"electron:package:windows:installer:work": "npm run electron:package:windows:installer work",
"electron:package:windows:installer:blue": "npm run electron:package:windows:installer blue",
"electron:package:windows:portable": "node tools/packaging/package-portable-zip.js",
"electron:package:macos:all": "npm run electron:package:macos:zip:all && npm run electron:package:macos:dmg:all",
"electron:package:macos:zip": "node tools/packaging/package-zip.js",
"electron:package:macos:zip:all": "npm run electron:package:macos:zip:consumer && npm run electron:package:macos:zip:work && npm run electron:package:macos:zip:blue",
"electron:package:macos:zip:consumer": "npm run electron:package:macos:zip consumer",
"electron:package:macos:zip:work": "npm run electron:package:macos:zip work",
"electron:package:macos:zip:blue": "npm run electron:package:macos:zip blue",
"electron:package:macos:dmg": "node tools/packaging/package-dmg.js",
"electron:package:macos:dmg:all": "npm run electron:package:macos:dmg:consumer && npm run electron:package:macos:dmg:work && npm run electron:package:macos:dmg:blue",
"electron:package:macos:dmg:consumer": "npm run electron:package:macos:dmg consumer",
"electron:package:macos:dmg:work": "npm run electron:package:macos:dmg work",
"electron:package:macos:dmg:blue": "npm run electron:package:macos:dmg blue",
"electron:package:linux:deb": "node tools/packaging/package-deb.js",
"electron:package:linux:deb:all": "npm run electron:package:linux:deb:consumer && npm run electron:package:linux:deb:work && npm run electron:package:linux:deb:blue",
"electron:package:linux:deb:consumer": "npm run electron:package:linux:deb consumer",
"electron:package:linux:deb:work": "npm run electron:package:linux:deb work",
"electron:package:linux:deb:blue": "npm run electron:package:linux:deb blue",
"electron:package:linux:rpm": "node tools/packaging/package-rpm.js",
"electron:package:linux:rpm:all": "npm run electron:package:linux:rpm:consumer && npm run electron:package:linux:rpm:work && npm run electron:package:linux:rpm:blue",
"electron:package:linux:rpm:consumer": "npm run electron:package:linux:rpm consumer",
"electron:package:linux:rpm:work": "npm run electron:package:linux:rpm work",
"electron:package:linux:rpm:blue": "npm run electron:package:linux:rpm blue",
"generateUpdates": "node tools/generate-update-metadata.js",
"generateUpdates:windows": "npm run generateUpdates updates windows consumer && npm run generateUpdates updates windows work && npm run generateUpdates updates windows blue",
"generateUpdates:macos": "npm run generateUpdates updates macOS consumer && npm run generateUpdates updates macOS work && npm run generateUpdates updates macOS blue",
"generateDownloads": "node tools/generate-update-metadata.js",
"generateDownloads:windows": "npm run generateUpdates downloads windows consumer && npm run generateUpdates downloads windows work && npm run generateUpdates downloads windows blue",
"generateDownloads:macos": "npm run generateUpdates downloads macOS consumer && npm run generateUpdates downloads macOS work && npm run generateUpdates downloads macOS blue",
"generateDownloads:linux-deb": "npm run generateUpdates downloads linux-deb consumer && npm run generateUpdates downloads linux-deb work && npm run generateUpdates downloads linux-deb blue",
"generateDownloads:linux-rpm": "npm run generateUpdates downloads linux-rpm consumer && npm run generateUpdates downloads linux-rpm work && npm run generateUpdates downloads linux-rpm blue",
"postinstall": "patch-package || echo \"Warning: patch-package failed. If we're not building for RPM, this warning can be ignored\" && exit 0"
},
"engines": {
"node": "20.18.0",
"npm": "10.8.2"
},
"devDependencies": {
"@electron/asar": "^3.2.13",
"@electron/notarize": "^2.5.0",
"@electron/osx-sign": "^1.3.1",
"@electron/universal": "^2.0.1",
"@threema/wasm-minisign-verify": "^0.1.3",
"@types/chai": "^4.3.16",
"@types/mocha": "^10.0.6",
"@types/semver": "^7.5.8",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"chai": "^4.4.1",
"copyfiles": "^2.4.1",
"electron": "^32.2.0",
"electron-packager": "^17.1.2",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"jsdoc": "^4.0.3",
"mocha-junit-reporter": "^2.2.1",
"nyc": "^15.1.0",
"patch-package": "^8.0.0",
"prettier": "^3.2.5",
"semver": "^7.6.2",
"tmp-promise": "^3.0.3",
"ts-mocha": "^10.0.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.5"
},
"optionalDependencies": {
"electron-installer-debian": "^3.2.0",
"electron-installer-dmg": "^5.0.1",
"electron-installer-redhat": "3.4.0",
"electron-installer-windows": "^3.0.0",
"macos-alias": "^0.2.11"
}
}