-
Notifications
You must be signed in to change notification settings - Fork 831
/
package.json
188 lines (188 loc) · 7.3 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
{
"name": "mattermost-desktop",
"productName": "Mattermost",
"version": "5.11.0-develop.1",
"description": "Mattermost",
"main": "dist/index.js",
"author": "Mattermost, Inc. <[email protected]>",
"license": "Apache-2.0",
"desktopName": "Mattermost.Desktop",
"homepage": "https://mattermost.com",
"engines": {
"node": ">=18.0.0"
},
"repository": {
"type": "git",
"url": "git://github.com/mattermost/desktop.git"
},
"scripts": {
"postinstall": "patch-package && electron-builder install-app-deps",
"clean": "rm -rf release/ node_modules/ src/node_modules/ dist/ && cd e2e && npm run clean && cd -",
"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:unit": "jest",
"test:unit-coverage": "jest --coverage",
"e2e": "npm run build-test && cd e2e && npm i && npm run run:e2e",
"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:*",
"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:mac-with-universal package:mas package:linux",
"package:windows": "run-s package:windows-*",
"package:windows-zip": "npm run build-prod && electron-builder --win zip --x64 --arm64 --publish=never",
"package:windows-installers": "npm run build-prod-upgrade && electron-builder --win nsis --x64 --arm64 --publish=never && node scripts/cp_msi_app_update.js && electron-builder --win msi --x64 --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": {
"@babel/preset-env": "7.24.0",
"@babel/preset-react": "7.23.3",
"@babel/preset-typescript": "7.23.3",
"@electron/fuses": "1.8.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",
"babel-loader": "9.1.3",
"copy-webpack-plugin": "10.2.4",
"cross-env": "7.0.3",
"css-loader": "6.7.1",
"electron": "33.2.0",
"electron-builder": "24.13.3",
"electron-connect": "0.6.3",
"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",
"node-loader": "2.0.0",
"npm-run-all": "4.1.5",
"patch-package": "8.0.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": {
"@emotion/react": "11.11.4",
"@mattermost/compass-icons": "0.1.45",
"auto-launch": "5.0.6",
"bootstrap": "4.6.1",
"bootstrap-dark": "1.0.3",
"classnames": "2.5.1",
"electron-context-menu": "4.0.4",
"electron-extension-installer": "1.2.0",
"electron-is-dev": "2.0.0",
"electron-log": "5.2.0",
"electron-updater": "6.3.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.4.0",
"winreg-utf8": "0.1.1",
"yargs": "17.7.2"
}
}