-
Notifications
You must be signed in to change notification settings - Fork 73
/
package.json
221 lines (221 loc) · 7.76 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
219
220
221
{
"name": "azure-iot-explorer",
"version": "0.15.9",
"description": "This project welcomes contributions and suggestions. Most contributions require you to agree to a\r Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\r the rights to use your contribution. For details, visit https://cla.microsoft.com.",
"main": "host/electron.js",
"build": {
"appId": "com.microsoft.azure.iot.pnp.ui",
"productName": "Azure IoT Explorer Preview",
"files": [
"dist/**/*",
"package.json",
"host/**/*"
],
"directories": {
"buildResources": "icon"
},
"linux": {
"category": "Utility",
"target": [
"deb"
]
},
"mac": {
"type": "distribution",
"icon": "icon/icon.icns"
},
"dmg": {
"internetEnabled": true
},
"win": {
"target": [
"msi"
]
},
"publish": null
},
"scripts": {
"build": "npm run localization && npm run webpack:compile && npm run server:compile && npm run electron:compile && webpack --mode production --config webpack.electron.js",
"pack:win": "electron-builder --dir",
"dist:win": "electron-builder -w --prepackaged ./dist/win-unpacked",
"clean": "IF EXIST .\\dist RMDIR /Q /S .\\dist",
"clean:linux": "rm --recursive -f ./dist",
"localization": "tsc ./scripts/composeLocalizationKeys.ts --skipLibCheck && node ./scripts/composeLocalizationKeys.js",
"import-semantic-units": "tsc ./scripts/importSemanticUnitTypes.ts --skipLibCheck && node ./scripts/importSemanticUnitTypes.js",
"docker": "docker pull electronuserland/electron-builder && docker run --rm -ti --mount source=$(pwd),target=/project,type=bind electronuserland/electron-builder:latest",
"electron": "electron .",
"electron:compile": "tsc --project ./public/tsconfig.json",
"package:win": "npm run clean && npm ci & npm rebuild sass && npm run build && electron-builder -w",
"package:linux": "npm run clean:linux && npm ci && npm rebuild sass && npm run build && electron-builder -l",
"package:mac": "npm ci && npm rebuild sass && npm run build && electron-builder -m",
"webpack:compile": "tsc --target es6 --module CommonJS --moduleResolution node ./webpack.common.ts webpack.electron.ts webpack.dev.ts",
"server:compile": "tsc ./src/server/serverElectron.ts ./src/server/serverLocal.ts --skipLibCheck --lib es2015 --inlineSourceMap --outDir ./dist/server/",
"start": "concurrently \"npm run start:web\" \"npm run start:server\"",
"start:server": "npm run server:compile && nodemon --inspect ./dist/server/serverLocal.js",
"start:web": "npm run localization && npm run webpack:compile && webpack-dev-server --config webpack.dev.js --mode development --hot --open --port 3000 --host 127.0.0.1",
"test": "npm run localization && jest --coverage --detectOpenHandles",
"test:debug": "node --inspect-brk ./node_modules/jest/bin/jest.js --runInBand -i --watch",
"test:updateSnapshot": "jest --updateSnapshot",
"test:watch": "jest --watch"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Azure/azure-iot-explorer.git"
},
"author": "Microsoft <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/Azure/azure-iot-explorer/issues"
},
"homepage": "https://github.com/Azure/azure-iot-explorer#readme",
"dependencies": {
"@azure/core-amqp": "3.2.0",
"@azure/event-hubs": "5.6.0",
"@azure/msal-node": "1.14.6",
"@fluentui/react": "8.101.2",
"@microsoft/applicationinsights-web": "2.8.4",
"@rjsf/fluent-ui": "5.7.0",
"@rjsf/material-ui": "5.2.1",
"@rjsf/validator-ajv8": "5.2.1",
"azure-iot-common": "1.12.14",
"azure-iothub": "1.16.4",
"body-parser": "1.20.1",
"brace": "0.11.1",
"cors": "2.8.5",
"crypto-browserify": "3.12.0",
"date-fns": "2.14.0",
"electron-window-state": "5.0.3",
"express": "4.19.2",
"i18next": "20.6.1",
"immutable": "4.0.0-rc.12",
"jsonschema": "1.2.4",
"msal": "1.2.0",
"node-fetch": "2.6.7",
"protobufjs": "7.2.4",
"react": "16.14.0",
"react-collapsible": "2.3.2",
"react-dom": "16.13.1",
"react-i18next": "11.11.1",
"react-jsonschema-form": "1.8.1",
"react-router-dom": "5.2.0",
"react-smooth-dnd": "0.11.0",
"react-toastify": "4.4.0",
"redux-saga": "1.1.3",
"semver": "6.3.1",
"typescript-fsa": "3.0.0-beta-2",
"typescript-fsa-reducers": "1.0.0",
"uuid": "3.3.3",
"ws": "5.2.3"
},
"devDependencies": {
"@redux-saga/testing-utils": "1.1.3",
"@types/async-lock": "1.1.0",
"@types/core-js": "2.5.0",
"@types/cors": "2.8.4",
"@types/enzyme": "3.10.8",
"@types/enzyme-adapter-react-16": "1.0.5",
"@types/express": "4.16.0",
"@types/jest": "26.0.24",
"@types/jest-plugin-context": "2.9.0",
"@types/node": "16.11.26",
"@types/node-fetch": "2.6.2",
"@types/react": "16.9.35",
"@types/react-dom": "16.9.8",
"@types/react-jsonschema-form": "1.0.10",
"@types/react-router-dom": "5.3.3",
"@types/request": "2.48.1",
"@types/semver": "6.0.2",
"@types/uuid": "3.4.5",
"concurrently": "5.3.0",
"copy-webpack-plugin": "6.4.1",
"css-loader": "6.7.1",
"css-minimizer-webpack-plugin": "3.4.1",
"electron": "22.3.25",
"electron-builder": "24.13.3",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.1",
"enzyme-to-json": "3.3.5",
"html-webpack-plugin": "5.5.0",
"is-svg": "4.4.0",
"jest": "26.6.3",
"jest-plugin-context": "2.9.0",
"jest-trx-results-processor": "0.2.0",
"lodash": "4.17.21",
"mini-css-extract-plugin": "2.6.0",
"node-polyfill-webpack-plugin": "1.1.4",
"nodemon": "2.0.20",
"sass": "1.35.2",
"sass-loader": "13.0.0",
"source-map-loader": "3.0.1",
"ssri": "8.0.1",
"style-loader": "0.23.1",
"ts-jest": "26.5.6",
"ts-loader": "9.2.8",
"tslint": "5.11.0",
"tslint-loader": "3.5.4",
"tslint-origin-ordered-imports-rule": "1.1.2",
"tslint-react": "3.6.0",
"typescript": "4.6.3",
"webpack": "5.76.0",
"webpack-bundle-analyzer": "4.5.0",
"webpack-cli": "4.10.0",
"webpack-dev-server": "4.8.1",
"webpack-merge": "5.8.0",
"webpack-shell-plugin": "0.5.0"
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"!src/**/*Container.{ts,tsx}",
"!src/app/jsonSchemaFormFabricPlugin/widgets/*.tsx",
"!src/app/jsonSchemaFormFabricPlugin/fields/*.tsx",
"!src/app/shared/redux/store.ts",
"!src/app/shared/redux/reducer.ts",
"!src/app/shared/redux/store/configureStore.ts",
"!src/app/shared/utils/exceptions/*.ts",
"!src/index.tsx",
"!src/localization/resources.ts"
],
"testEnvironment": "jsdom",
"coverageReporters": [
"html",
"cobertura"
],
"setupFiles": [
"jest-plugin-context/setup",
"./jestSetup.ts"
],
"transform": {
"^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
},
"testRegex": "(\\.|/)(spec)\\.(tsx?)$",
"moduleNameMapper": {
"^.+\\.(scss)$": "<rootDir>/scss-stub.js",
".+\\appconfig.ENV.json": "<rootDir>/src/appConfig/appConfig.dev.json"
},
"moduleFileExtensions": [
"js",
"json",
"jsx",
"ts",
"tsx"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"testURL": "http://localhost?trustedAuthority=https://localhost",
"testResultsProcessor": "./jestTrxProcessor.ts",
"globals": {
"__DEV__": true,
"_CONTROLLER_ENDPOINT": "_CONTROLLER_ENDPOINT",
"frameSignature": "portalEnvironmentFrameSignature",
"ts-jest": {
"tsConfig": "./tsconfig-jest.json",
"diagnostics": false
}
},
"preset": "ts-jest/presets/js-with-ts",
"testMatch": null
}
}