зеркало из
1
0
Форкнуть 0
azure-iot-explorer/package.json

224 строки
8.0 KiB
JSON

{
"name": "azure-iot-explorer",
"version": "0.10.12",
"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": "public/electron.js",
"build": {
"appId": "com.microsoft.azure.iot.pnp.ui",
"productName": "Azure IoT explorer",
"files": [
"dist/**/*",
"package.json",
"public/electron.js"
],
"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",
"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 ./public/electron.ts --skipLibCheck --lib es2015 --inlineSourceMap",
"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 <iotupx@microsoft.com>",
"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",
"@types/core-js": "2.5.0",
"@types/semver": "6.0.2",
"@types/uuid": "3.4.5",
"azure-iot-common": "1.10.3",
"azure-iothub": "1.8.1",
"body-parser": "1.18.3",
"core-js": "3.0.0",
"cors": "2.8.5",
"express": "4.16.4",
"i18next": "11.10.1",
"immutable": "4.0.0-rc.12",
"jsonschema": "1.2.4",
"moment": "2.24.0",
"monaco-editor": "0.15.1",
"office-ui-fabric-core": "10.1.0",
"office-ui-fabric-react": "7.67.0",
"react": "16.8.6",
"react-collapsible": "2.3.2",
"react-dom": "16.8.6",
"react-i18next": "8.1.0",
"react-infinite-scroller": "1.2.2",
"react-jsonschema-form": "1.7.0",
"react-monaco-editor": "0.30.1",
"react-redux": "7.1.3",
"react-router-dom": "4.3.1",
"react-smooth-dnd": "0.11.0",
"react-toastify": "4.4.0",
"redux": "4.0.4",
"redux-logger": "3.0.6",
"redux-saga": "0.16.2",
"request": "2.88.0",
"reselect": "4.0.0",
"semver": "6.3.0",
"typescript-fsa": "3.0.0-beta-2",
"typescript-fsa-reducers": "1.0.0",
"uuid": "3.3.3"
},
"devDependencies": {
"@types/async-lock": "1.1.0",
"@types/cors": "2.8.4",
"@types/enzyme": "3.10.4",
"@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/react": "16.8.20",
"@types/react-dom": "16.8.4",
"@types/react-i18next": "7.8.3",
"@types/react-infinite-scroller": "1.0.8",
"@types/react-jsonschema-form": "1.0.10",
"@types/react-redux": "7.1.5",
"@types/react-router-dom": "4.3.1",
"@types/react-toastify": "4.0.1",
"@types/redux-logger": "3.0.7",
"@types/request": "2.48.1",
"@types/webpack": "4.4.22",
"@types/webpack-dev-server": "3.1.7",
"@types/webpack-merge": "4.1.5",
"awesome-typescript-loader": "5.2.1",
"concurrently": "4.1.0",
"css-loader": "1.0.0",
"electron": "7.1.2",
"electron-builder": "21.2.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",
"jest": "24.8.0",
"jest-plugin-context": "2.9.0",
"jest-trx-results-processor": "0.0.7",
"mini-css-extract-plugin": "0.8.0",
"monaco-editor-webpack-plugin": "1.7.0",
"node-sass": "4.13.1",
"nodemon": "1.18.7",
"optimize-css-assets-webpack-plugin": "5.0.3",
"sass-loader": "7.1.0",
"source-map-loader": "0.2.4",
"style-loader": "0.23.1",
"terser-webpack-plugin": "1.4.2",
"ts-jest": "24.0.2",
"tslint": "5.11.0",
"tslint-loader": "3.5.4",
"tslint-origin-ordered-imports-rule": "1.1.2",
"tslint-react": "3.6.0",
"typescript": "3.4.5",
"webpack": "4.41.2",
"webpack-bundle-analyzer": "3.3.2",
"webpack-cli": "3.1.2",
"webpack-dev-server": "3.1.14",
"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": {
"^office-ui-fabric-react/lib": "<rootDir>/node_modules/office-ui-fabric-react/lib-commonjs",
"^.+\\.(scss)$": "<rootDir>/scss-stub.js",
"monaco-editor": "<rootDir>/node_modules/react-monaco-editor",
".+\\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
}
}