-
Notifications
You must be signed in to change notification settings - Fork 69
/
package.json
174 lines (174 loc) · 6.83 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
{
"name": "bfx-hf-ui",
"version": "3.31.8",
"description": "Official Bitfinex Honey UI - for live trading and executing algorithmic orders/strategies",
"engines": {
"node": ">=18"
},
"type": "commonjs",
"main": "./build/electron.js",
"homepage": "./",
"productName": "Bitfinex Honey",
"build": {
"productName": "Bitfinex Honey",
"files": [
"build/**/*",
"node_modules/**/*",
"src/**/*",
"scripts/**/*",
"clear.sh"
],
"asar": false,
"appId": "com.bitfinex.honey",
"directories": {
"buildResources": "public"
},
"mac": {
"type": "development",
"icon": "build/icon.png",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"artifactName": "${productName}-${version}-${arch}-${os}.${ext}",
"category": "public.app-category.productivity",
"target": [
"dir",
"zip"
]
},
"win": {
"icon": "build/icon.png",
"target": [
"zip",
"nsis"
],
"publisherName": "Bitfinex Honey UI",
"verifyUpdateCodeSignature": false
},
"linux": {
"icon": "build/icon.png",
"artifactName": "${productName}-${version}-${arch}-${os}.${ext}",
"description": "Bitfinex Honey UI",
"maintainer": "<bitfinex.com>",
"category": "Network",
"target": [
"zip",
"AppImage"
]
},
"dmg": {
"iconSize": 100,
"contents": [
{
"x": 380,
"y": 280,
"type": "link",
"path": "/Applications"
},
{
"x": 110,
"y": 280,
"type": "file"
}
],
"window": {
"width": 500,
"height": 500
}
}
},
"scripts": {
"preinstall": "cd ./bfx-hf-ui-core && npm install --omit='optional'",
"build-css": "cd ./bfx-hf-ui-core && npm run build-css",
"watch-css": "cd ./bfx-hf-ui-core && npm run watch-css",
"start-server": "cross-env concurrently --kill-others \"npm run start-api-server\" \"npm run start-ds-bitfinex\"",
"start-api-server": "env-cmd node scripts/start-api-server.js",
"start-ds-bitfinex": "cross-env node scripts/start-ds-bitfinex.js",
"start": "cd ./bfx-hf-ui-core && cross-env REACT_APP_DEV=1 env-cmd -f ../.env npx react-scripts start",
"prebuild": "cd ./bfx-hf-ui-core && git checkout -- .",
"build": "npm run fetch-core && npm run update-core && npm run preinstall && cd bfx-hf-ui-core && env-cmd -f ../.env npm run build-css && env-cmd -f ../.env npx react-scripts build",
"update-core": "git submodule update --remote --merge",
"fetch-core": "git submodule update --init --recursive",
"postbuild": "run-script-os",
"postbuild:win32": "call %CD%\\scripts\\postbuild.bat",
"postbuild:darwin:linux": "rm -rf ./build && mv ./bfx-hf-ui-core/build ./build && cp -r ./public/* ./build",
"dev": "cross-env concurrently --kill-others \"npm run start-server\" \"npm run start\"",
"electron-dev": "cross-env concurrently \"BROWSER=none npm run start-server\" & electron .",
"electron": "cross-env electron .",
"electron-debug": "cross-env REACT_APP_ELECTRON_DEBUG='true' electron --inspect=9229 --remote-debugging-port=9222 .",
"pack": "cross-env ./node_modules/.bin/electron-builder --dir",
"deploy": "npm run build && cross-env electron-builder build -c.extraMetadata.main=build/electron.js -lwm --publish always",
"build-all": "npm run build && cross-env electron-builder build -c.extraMetadata.main=build/electron.js -lwm --publish never",
"dist-win-unpruned": "cross-env electron-builder --win -c.extraMetadata.main=build/electron.js --publish never",
"dist-win": "cross-env npm run dist-win-unpruned && npm run package-win",
"dist-mac": "cross-env electron-packager --prune . --overwrite --platform=mas --arch=x64 --icon=build/icon.png --out=dist && npm run package-mac",
"dist-linux": "cross-env electron-builder --linux -c.extraMetadata.main=build/electron.js --publish never && npm run package-linux",
"package-mac": "cd dist/bfx-hf-ui-mas-x64/bfx-hf-ui.app/Contents/Resources/app && sh clear.sh && node-prune && cd ../../../../../../ && zip --symlinks -r ./dist/bfx-hf-ui-mac-x64.zip ./dist/bfx-hf-ui-mas-x64 && cd ./dist/ && sha256sum bfx-hf-ui-mac-x64.zip >> sha256sums.asc && cd ..",
"package-win": "cd dist/win-unpacked/resources/app && sh clear.sh && node-prune && cd ../../../../ && zip --symlinks -r ./dist/The.Honey.Framework-win.zip ./dist/win-unpacked && cd ./dist/ && sha256sum The.Honey.Framework-win.zip >> sha256sums.asc && cd ..",
"package-linux": "cd dist/linux-unpacked/resources/app && sh clear.sh && node-prune && cd ../../../.. && zip --symlinks -r ./dist/The.Honey.Framework-x64-linux.zip ./dist/linux-unpacked && cd ./dist/ && sha256sum The.Honey.Framework-x64-linux.zip >> sha256sums.asc && cd ..",
"release": "electron-builder -p always",
"lint": "cross-env eslint --fix public && eslint --fix scripts"
},
"author": "Bitfinex",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/bitfinexcom/bfx-hf-ui/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/bitfinexcom/bfx-hf-ui.git"
},
"keywords": [
"bitfinex",
"bitcoin",
"BTC"
],
"devDependencies": {
"babel-preset-react-app": "^10.0.1",
"browserslist": "^4.22.0",
"electron": "^26.2.3",
"electron-builder": "^24.6.4",
"electron-packager": "17.1.2",
"eslint": "^8.50.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.28.1",
"node-prune": "^1.0.2",
"run-script-os": "^1.1.6"
},
"dependencies": {
"adm-zip": "^0.5.10",
"bfx-hf-data-server": "git+https://github.com/bitfinexcom/bfx-hf-data-server.git#v5.0.0",
"bfx-hf-ext-plugin-bitfinex": "git+https://github.com/bitfinexcom/bfx-hf-ext-plugin-bitfinex.git#v1.0.13",
"bfx-hf-models": "git+https://github.com/bitfinexcom/bfx-hf-models.git#v4.0.1",
"bfx-hf-models-adapter-lowdb": "git+https://github.com/bitfinexcom/bfx-hf-models-adapter-lowdb.git#v1.0.6",
"bfx-hf-server": "git+https://github.com/bitfinexcom/bfx-hf-server.git#v10.1.0",
"bfx-hf-util": "git+https://github.com/bitfinexcom/bfx-hf-util#v1.0.12",
"concurrently": "^8.2.1",
"cross-env": "^7.0.3",
"dotenv": "^16.3.1",
"electron-log": "^4.4.8",
"electron-root-path": "git+https://github.com/dmytroshch/npm-electron-root-path.git#update-deps",
"electron-serve": "^1.1.0",
"electron-updater": "^6.1.4",
"electron-util": "^0.17.2",
"electron-window-state": "^5.0.3",
"env-cmd": "^10.1.0",
"extract-zip": "^2.0.1"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"babel": {
"presets": [
"react-app"
]
}
}