forked from Azure/azure-iot-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
216 lines (216 loc) · 7.64 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
{
"name": "azure-iot-explorer",
"version": "0.14.4",
"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 install && npm rebuild node-sass && npm run build && electron-builder -w",
"package:linux": "npm run clean:linux && npm install && npm rebuild node-sass && npm run build && electron-builder -l",
"package:mac": "npm install && npm rebuild node-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/event-hubs": "1.0.7",
"@fluentui/react": "8.20.2",
"azure-iot-common": "1.10.3",
"azure-iothub": "1.8.1",
"body-parser": "1.18.3",
"brace": "0.11.1",
"cors": "2.8.5",
"date-fns": "2.14.0",
"electron-window-state": "5.0.3",
"express": "4.16.4",
"i18next": "11.10.1",
"immutable": "4.0.0-rc.12",
"jsonschema": "1.2.4",
"msal": "1.2.0",
"react": "16.13.1",
"react-collapsible": "2.3.2",
"react-dom": "16.13.1",
"react-i18next": "11.8.13",
"react-jsonschema-form": "1.7.0",
"react-router-dom": "5.2.0",
"react-smooth-dnd": "0.11.0",
"react-toastify": "4.4.0",
"redux-saga": "1.1.3",
"request": "2.88.0",
"semver": "6.3.0",
"typescript-fsa": "3.0.0-beta-2",
"typescript-fsa-reducers": "1.0.0",
"uuid": "3.3.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/i18next": "8.4.4",
"@types/jest": "24.0.15",
"@types/jest-plugin-context": "2.9.0",
"@types/node": "14.0.27",
"@types/react": "16.9.35",
"@types/react-dom": "16.9.8",
"@types/react-jsonschema-form": "1.0.10",
"@types/react-router-dom": "5.1.5",
"@types/request": "2.48.1",
"@types/semver": "6.0.2",
"@types/uuid": "3.4.5",
"@types/webpack": "4.41.27",
"@types/webpack-dev-server": "3.11.3",
"@types/webpack-merge": "4.1.5",
"awesome-typescript-loader": "5.2.1",
"concurrently": "5.3.0",
"copy-webpack-plugin": "6.1.0",
"css-loader": "1.0.0",
"electron": "11.2.1",
"electron-builder": "22.8.0",
"enzyme": "3.11.0",
"enzyme-adapter-react-16": "1.15.1",
"enzyme-to-json": "3.3.5",
"file-loader": "2.0.0",
"html-webpack-plugin": "3.2.0",
"is-svg": "^4.3.1",
"jest": "26.4.2",
"jest-plugin-context": "2.9.0",
"jest-trx-results-processor": "0.0.7",
"lodash": "4.17.21",
"mini-css-extract-plugin": "0.8.0",
"node-sass": "4.14.1",
"nodemon": "2.0.4",
"optimize-css-assets-webpack-plugin": "5.0.3",
"sass-loader": "7.1.0",
"source-map-loader": "0.2.4",
"ssri": "^8.0.1",
"style-loader": "0.23.1",
"terser-webpack-plugin": "1.4.5",
"ts-jest": "26.2.0",
"tslint": "5.11.0",
"tslint-loader": "3.5.4",
"tslint-origin-ordered-imports-rule": "1.1.2",
"tslint-react": "3.6.0",
"typescript": "3.8.3",
"webpack": "4.41.6",
"webpack-bundle-analyzer": "3.3.2",
"webpack-cli": "3.3.12",
"webpack-dev-server": "3.11.0",
"webpack-merge": "4.2.1",
"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
}
}