X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=package.json;h=c2bdc47437c4276e31e5655b7570a2cd03b7f35a;hb=refs%2Fheads%2Fdependabot%2Fnpm_and_yarn%2Felectron-7.2.4;hp=bd46138003d31ac562fe14206cc006baa1e6c0b0;hpb=65236f34c8353b0048a642183cf083c05456898b;p=bytom%2Fbytom-electron.git diff --git a/package.json b/package.json index bd46138..c2bdc47 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,85 @@ { - "name": "dashboard", - "version": "1.0.0", - "description": "", + "name": "bytom-wallet", + "productName": "Bytom Wallet", + "build": { + "electronVersion": "1.8.3", + "appId": "io.bytom.desktop", + "directories": { + "buildResources": "./", + "output": "desktop" + }, + "files": [ + "node_modules/**/*", + "main.js", + "modules/**/*", + "static/**/*", + "public/**", + "!node_modules/electron/", + "!node_modules/electron/**/*" + ], + "mac": { + "icon": "static/images/app-icon/mac/app.icns", + "artifactName": "${name}-desktop-${version}-${os}.${ext}", + "category": "public.app-category.wallet", + "extraResources": "bytomd/bytomd-darwin_amd64", + "target": "zip" + }, + "dmg": { + "contents": [ + { + "x": 129, + "y": 250 + }, + { + "x": 410, + "y": 247, + "type": "link", + "path": "/Applications" + } + ] + }, + "nsis": { + "perMachine": true, + "oneClick": false + }, + "win": { + "icon": "static/images/app-icon/win/app.ico", + "artifactName": "${name}-desktop-${version}-${os}-${arch}.${ext}", + "extraResources": "bytomd/bytomd-windows_${env.ARCH_VARIABLE}.exe", + "target": "zip" + }, + "linux": { + "maintainer": "bytom contributors ", + "artifactName": "${name}-desktop-${version}-${os}-${arch}.${ext}", + "executableName": "Bytom Wallet", + "extraResources": "bytomd/bytomd-linux_${env.ARCH_VARIABLE}", + "target": "zip", + "category": "Finance", + "packageCategory": "wallet", + "icon": "static/images/app-icon/png/app.png" + }, + "asar": true + }, + "version": "1.1.0", + "description": "Bytom Wallet Desktop", + "main": "main.js", "scripts": { "build:dll": "node ./bin/dependencies.js", "postinstall": "npm run build:dll", - "build": "NODE_ENV=production webpack --config webpack/webpack.app.js", + "electron-dev": "DEV_URL=http://localhost:3000/index.html electron --inspect=5858 main.js .", + "build": "NODE_ENV=production webpack --config webpack/webpack.app.js ", "lint": "eslint \"src/**\"", "start": "hjs-dev-server webpack/webpack.app.js --hot --host 0.0.0.0", - "generate-component": "babel-node bin/generate.js component" + "generate-component": "babel-node bin/generate.js component", + "package": "npm run build && npm-run-all package:* ", + "package:mac": "electron-builder -m ", + "package:win-32": "ARCH_VARIABLE=386 electron-builder --win --ia32", + "package:win-64": "ARCH_VARIABLE=amd64 electron-builder --win --x64 ", + "package:linux-32": "ARCH_VARIABLE=386 electron-builder -l --ia32", + "package:linux-64": "ARCH_VARIABLE=amd64 electron-builder -l --x64" }, - "author": "Chain", - "license": "", + "author": "Bytom", + "license": "AGPL-3.0-only", "browserslist": [ "> 1%", "last 3 versions", @@ -19,36 +87,49 @@ ], "dependencies": { "babel-polyfill": "~6.16.0", - "bootstrap-sass": "~3.3.7", + "babel-register": "~6.22.0", + "bignumber.js": "^7.2.1", + "bootstrap-sass": "~3.4.1", "btoa": "^1.1.2", "classnames": "~2.2.5", + "electron-settings": "~3.1.4", "fetch-ponyfill": "~3.0.2", - "lodash": "~4.17.4", + "glob": "~7.1.2", + "i18next": "^11.9.1", + "i18next-browser-languagedetector": "^2.2.3", + "lodash": "~4.17.14", + "log4js": "^3.0.5", + "mem": "^5.1.1", "moment": "^2.22.1", "moment-timezone": "^0.5.17", + "net": "^1.0.2", "pluralize": "~3.0.0", - "prop-types": "^15.5.8", + "prop-types": "^15.6.2", + "qrcode": "^1.3.3", "react": "~15.5.0", - "react-ace": "~3.5.0", - "react-autosuggest": "~6.0.4", + "react-ace": "~6.2.0", + "react-autosuggest": "~9.4.2", "react-bootstrap": "~0.30.3", "react-dom": "~15.5.0", + "react-i18next": "^8.0.7", "react-markdown": "^2.5.0", "react-overlays": "~0.8.3", "react-redux": "~4.4.5", "react-router": "~2.6.0", "react-router-redux": "~4.0.5", "react-router-scroll": "~0.3.2", - "redux": "~3.5.2", + "redux": "~4.0.4", "redux-form": "~5.3.6", "redux-thunk": "~2.1.0", "reselect": "^3.0.0", "sha.js": "^2.4.8", + "tcp-port-used": "^1.0.1", + "toml": "~2.3.3", "uuid": "~2.0.2" }, "devDependencies": { "autoprefixer": "~6.7.7", - "babel-cli": "~6.14.0", + "babel-cli": "~6.26.0", "babel-core": "~6.11.4", "babel-eslint": "~7.0.0", "babel-loader": "~6.2.4", @@ -56,24 +137,29 @@ "babel-preset-es2015": "~6.9.0", "babel-preset-react": "~6.5.0", "babel-preset-react-hmre": "~1.1.1", - "babel-register": "~6.22.0", "bootstrap-loader": "~1.0.10", + "braces": "^3.0.2", "chai": "~3.5.0", "chai-as-promised": "~6.0.0", "command-line-args": "~3.0.1", "command-line-commands": "~1.0.4", - "css-loader": "0.14.5", - "eslint": "~3.7.0", - "eslint-plugin-react": "~6.4.0", + "css-loader": "0.26.1", + "electron": "~7.2.4", + "electron-builder": "^20.10.0", + "eslint": "~4.18.2", + "eslint-plugin-react": "~7.14.2", + "extend": "~3.0.2", "file-loader": "~0.9.0", - "hjs-webpack": "~8.4.0", + "hjs-webpack": "~8.4.3", + "js-yaml": "^3.13.1", "json-loader": "~0.5.4", "nock": "~4.0.0", - "node-sass": "~3.8.0", + "npm-run-all": "^4.1.2", + "node-sass": "~4.12.0", "postcss-loader": "~1.1.0", "react-hot-loader": "~1.3.0", "resolve-url-loader": "~1.6.0", - "sass-loader": "~4.0.0", + "sass-loader": "~7.1.0", "sass-resources-loader": "~1.1.0", "shelljs": "~0.7.4", "style-loader": "~0.13.1",