-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
218 lines (218 loc) · 8.44 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": "grommunio-desktop",
"productName": "grommunio",
"version": "5.8.0",
"description": "grommunio",
"main": "dist/index.js",
"author": "grommunio GmbH <[email protected]>",
"license": "Apache-2.0",
"desktopName": "grommunio.Desktop",
"homepage": "https://grommunio.com",
"engines": {
"node": ">=18.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/grommunio/grommunio-desktop"
},
"config": {
"target": "29.3.0",
"arch": "x64",
"target_arch": "x64",
"disturl": "https://electronjs.org/headers",
"runtime": "electron",
"build_from_source": true
},
"scripts": {
"postinstall": "patch-package && electron-builder install-app-deps",
"clean": "rm -rf release/ node_modules/ src/node_modules/ dist/",
"clean-install": "npm run clean && npm install",
"clean-dist": "rm -rf dist/",
"check": "run-p lint:js-quiet check-build-config check-types test:unit",
"check-build-config": "tsc ./src/common/config/buildConfig.ts --outDir dist --baseUrl src --skipLibCheck && node scripts/check_build_config.js",
"check-types": "tsc",
"prune": "ts-prune",
"i18n-extract": "mmjstool -- i18n extract-desktop",
"lint:js": "eslint --ext .js,.jsx,.tsx,.ts --cache .",
"lint:js-quiet": "npm run lint:js -- --quiet",
"fix:js": "npm run lint:js-quiet -- --fix",
"test": "run-s lint:js test:unit test:e2e",
"test:e2e": "run-s build-test test:e2e:run",
"test:e2e:run": "electron-mocha --reporter mochawesome dist/tests/e2e_bundle.js",
"test:e2e:no-rebuild": "run-s build-test:e2e test:e2e:run",
"test:e2e:performance": "run-s build-test test:e2e:run-performance",
"test:e2e:run-performance": "electron-mocha --reporter json --reporter-option output=./e2e/performance/perf-test-report.json dist/tests/e2e_bundle.js",
"test:e2e:send-report": "node ./e2e/save_report.js",
"test:unit": "jest",
"test:unit-coverage": "jest --coverage",
"build": "run-p build:*",
"build:main": "webpack-cli --config webpack.config.main.js",
"build:preload": "webpack-cli --config webpack.config.preload.js",
"build:renderer": "webpack-cli --config webpack.config.renderer.js",
"build-prod": "cross-env NODE_ENV=production run-s check-build-config build",
"build-prod-mas": "cross-env NODE_ENV=production IS_MAC_APP_STORE=true run-s check-build-config build",
"build-prod-upgrade": "cross-env NODE_ENV=production CAN_UPGRADE=true run-s check-build-config build",
"build-test": "cross-env NODE_ENV=test run-p build:* build-test:*",
"build-test:robotjs": "cross-env CL='/std:c++17' electron-rebuild -m ./node_modules/robotjs",
"build-test:e2e": "webpack-cli --config webpack.config.test.js",
"build-test:e2e-performance": "webpack-cli --config webpack.config.performance.test.js",
"build-all": "run-p build build-test",
"create-linux-dev-shortcut": "node scripts/create_linux_dev_shortcut.js",
"start": "npm run create-linux-dev-shortcut && electron dist/ --disable-dev-mode",
"restart": "run-s build start",
"watch": "npm run create-linux-dev-shortcut && node scripts/watch.js",
"package": "run-s package:windows package:windows-nsis package:mac-with-universal package:mas package:linux",
"package:windows": "npm run build-prod && electron-builder --win zip --x64 --ia32 --arm64 --publish=never",
"package:windows-nsis": "npm run build-prod-upgrade && electron-builder --win zip nsis --x64 --ia32 --arm64 --publish=never",
"package:mac": "npm run build-prod && electron-builder --config.mac.provisioningProfile=./mac.provisionProfile --mac --x64 --arm64 --publish=never",
"package:mac-with-universal": "npm run package:mac -- --universal",
"package:mas": "npm run build-prod-mas && electron-builder --mac mas --universal --publish=never",
"package:mas-dev": "npm run build-prod-mas && electron-builder --mac mas-dev --universal --publish=never",
"package:linux": "run-s package:linux-*",
"package:linux-tar": "npm run build-prod && electron-builder --linux tar.gz --x64 --publish=never && cross-env CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ electron-builder --linux tar.gz --arm64 --publish=never",
"package:linux-pkg": "npm run build-prod && electron-builder --linux deb rpm --x64 --publish=never && cross-env CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ electron-builder --linux deb rpm --arm64 --publish=never",
"package:linux-appImage": "npm run build-prod-upgrade && electron-builder --linux tar.gz appimage --x64 --publish=never && cross-env CC=aarch64-linux-gnu-gcc CXX=aarch64-linux-gnu-g++ electron-builder --linux tar.gz appimage --arm64 --publish=never"
},
"jest": {
"clearMocks": true,
"moduleDirectories": [
"src",
"node_modules"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
],
"collectCoverageFrom": [
"src/common/**/*.ts",
"src/main/**/*.ts"
],
"testMatch": [
"**/src/**/*.test.js",
"**/src/**/*.test.ts"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/e2e/",
"/webpack.config.test.js"
],
"globals": {
"__HASH_VERSION__": "5.0.0",
"__CAN_UPGRADE__": false,
"__IS_NIGHTLY_BUILD__": false,
"__IS_MAC_APP_STORE__": false,
"__DISABLE_GPU__": false,
"__SKIP_ONBOARDING_SCREENS__": false
},
"setupFiles": [
"./src/jest/jestSetup.js"
],
"setupFilesAfterEnv": [
"./src/jest/jestSetupAfterEnv.js"
],
"reporters": [
"default",
[
"jest-junit",
{
"suiteName": "unit tests",
"outputName": "test-results.xml",
"classNameTemplate": "{classname}-{title}",
"titleTemplate": "{classname}-{title}",
"ancestorSeparator": "> "
}
]
]
},
"devDependencies": {
"@aws-sdk/client-s3": "3.445.0",
"@aws-sdk/lib-storage": "3.445.0",
"@babel/preset-env": "7.24.0",
"@babel/preset-react": "7.23.3",
"@babel/preset-typescript": "7.23.3",
"@electron/fuses": "1.6.0",
"@electron/rebuild": "3.6.0",
"@mattermost/desktop-api": "file:api-types",
"@mattermost/eslint-plugin": "1.1.0-0",
"@types/auto-launch": "5.0.5",
"@types/jest": "29.4.1",
"@types/react": "17.0.43",
"@types/react-beautiful-dnd": "13.1.8",
"@types/react-dom": "17.0.14",
"@types/uuid": "9.0.8",
"@types/valid-url": "1.0.7",
"@types/winreg": "1.2.36",
"7zip-bin": "5.1.1",
"axios": "1.6.7",
"babel-loader": "9.1.3",
"chai": "4.3.6",
"copy-webpack-plugin": "10.2.4",
"cross-env": "7.0.3",
"css-loader": "6.7.1",
"electron": "29.3.0",
"electron-builder": "24.13.3",
"electron-connect": "0.6.3",
"electron-mocha": "12.2.0",
"eslint": "8.57.0",
"eslint-import-resolver-webpack": "0.13.8",
"eslint-plugin-formatjs": "4.12.2",
"eslint-plugin-no-only-tests": "3.1.0",
"eslint-plugin-react": "7.34.0",
"eslint-plugin-react-hooks": "4.6.0",
"html-webpack-plugin": "5.5.0",
"jest": "29.4.1",
"jest-junit": "13.1.0",
"mini-css-extract-plugin": "2.6.0",
"mmjstool": "github:mattermost/mattermost-utilities#3b4506b0f6b14fbb402f9f8ef932370e459e3773",
"mochawesome": "7.1.3",
"nan": "2.19.0",
"node-abi": "3.56.0",
"node-gyp": "10.0.1",
"node-loader": "2.0.0",
"npm-run-all": "4.1.5",
"patch-package": "8.0.0",
"playwright": "1.42.0",
"ps-node": "0.1.6",
"recursive-readdir": "2.2.3",
"robotjs": "0.6.0",
"sass": "1.49.11",
"sass-loader": "12.6.0",
"semver": "7.6.0",
"style-loader": "3.3.1",
"ts-prune": "0.10.3",
"typescript": "5.3.3",
"webpack": "5.90.3",
"webpack-cli": "4.10.0",
"webpack-merge": "5.8.0"
},
"dependencies": {
"@mattermost/compass-icons": "0.1.43",
"auto-launch": "5.0.6",
"bootstrap": "4.6.1",
"bootstrap-dark": "1.0.3",
"classnames": "2.5.1",
"electron-context-menu": "3.6.1",
"electron-extension-installer": "1.2.0",
"electron-is-dev": "2.0.0",
"electron-log": "5.1.1",
"electron-updater": "6.1.8",
"file-loader": "^6.2.0",
"joi": "17.12.2",
"macos-notification-state": "3.0.0",
"pretty-bytes": "6.1.1",
"react": "17.0.2",
"react-beautiful-dnd": "13.1.1",
"react-bootstrap": "1.6.4",
"react-dom": "17.0.2",
"react-intl": "6.6.2",
"react-select": "5.8.0",
"uuid": "9.0.1",
"valid-url": "1.0.9",
"windows-focus-assist": "1.3.0",
"winreg-utf8": "0.1.1",
"yargs": "17.7.2"
}
}