|
@@ -1,22 +1,27 @@
|
|
|
{
|
|
{
|
|
|
- "name": "@rongmz/react-stock-heatmap-example",
|
|
|
|
|
|
|
+ "name": "react-stock-heatmap-example",
|
|
|
"homepage": ".",
|
|
"homepage": ".",
|
|
|
- "version": "0.0.0",
|
|
|
|
|
|
|
+ "version": "1.0.0",
|
|
|
"private": true,
|
|
"private": true,
|
|
|
|
|
+ "main": "main.js",
|
|
|
"scripts": {
|
|
"scripts": {
|
|
|
"start-web": "node ../node_modules/react-scripts/bin/react-scripts.js start",
|
|
"start-web": "node ../node_modules/react-scripts/bin/react-scripts.js start",
|
|
|
"build-web": "node ../node_modules/react-scripts/bin/react-scripts.js build",
|
|
"build-web": "node ../node_modules/react-scripts/bin/react-scripts.js build",
|
|
|
"test": "node ../node_modules/react-scripts/bin/react-scripts.js test",
|
|
"test": "node ../node_modules/react-scripts/bin/react-scripts.js test",
|
|
|
- "eject": "node ../node_modules/react-scripts/bin/react-scripts.js eject"
|
|
|
|
|
|
|
+ "eject": "node ../node_modules/react-scripts/bin/react-scripts.js eject",
|
|
|
|
|
+ "package": "electron-builder",
|
|
|
|
|
+ "start": "electron ."
|
|
|
},
|
|
},
|
|
|
"dependencies": {
|
|
"dependencies": {
|
|
|
|
|
+ "@rongmz/react-stock-heatmap": "file:..",
|
|
|
"react": "file:../node_modules/react",
|
|
"react": "file:../node_modules/react",
|
|
|
"react-dom": "file:../node_modules/react-dom",
|
|
"react-dom": "file:../node_modules/react-dom",
|
|
|
- "react-scripts": "file:../node_modules/react-scripts",
|
|
|
|
|
- "@rongmz/react-stock-heatmap": "file:.."
|
|
|
|
|
|
|
+ "react-scripts": "file:../node_modules/react-scripts"
|
|
|
},
|
|
},
|
|
|
"devDependencies": {
|
|
"devDependencies": {
|
|
|
- "@babel/plugin-syntax-object-rest-spread": "^7.8.3"
|
|
|
|
|
|
|
+ "@babel/plugin-syntax-object-rest-spread": "^7.8.3",
|
|
|
|
|
+ "electron": "^30.0.9",
|
|
|
|
|
+ "electron-builder": "^24.13.3"
|
|
|
},
|
|
},
|
|
|
"eslintConfig": {
|
|
"eslintConfig": {
|
|
|
"extends": "react-app"
|
|
"extends": "react-app"
|
|
@@ -26,5 +31,31 @@
|
|
|
"not dead",
|
|
"not dead",
|
|
|
"not ie <= 11",
|
|
"not ie <= 11",
|
|
|
"not op_mini all"
|
|
"not op_mini all"
|
|
|
- ]
|
|
|
|
|
|
|
+ ],
|
|
|
|
|
+ "build": {
|
|
|
|
|
+ "appId": "com.example.heatmap",
|
|
|
|
|
+ "productName": "Heatmap",
|
|
|
|
|
+ "directories": {
|
|
|
|
|
+ "output": "dist"
|
|
|
|
|
+ },
|
|
|
|
|
+ "files": [
|
|
|
|
|
+ "./electron.js",
|
|
|
|
|
+ "package.json",
|
|
|
|
|
+ {
|
|
|
|
|
+ "from": "build",
|
|
|
|
|
+ "to": "./",
|
|
|
|
|
+ "filter": ["**/*"]
|
|
|
|
|
+ }
|
|
|
|
|
+ ],
|
|
|
|
|
+ "asar": true,
|
|
|
|
|
+ "win": {
|
|
|
|
|
+ "target": [
|
|
|
|
|
+ "nsis"
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
|
|
+ "nsis": {
|
|
|
|
|
+ "oneClick": false,
|
|
|
|
|
+ "allowToChangeInstallationDirectory": true
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|