-
Notifications
You must be signed in to change notification settings - Fork 58
/
package.json
205 lines (205 loc) · 6.48 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
{
"name": "defi-wallet",
"version": "4.2.4",
"description": "DeFi Wallet",
"main": "./electron-app/build/electron-app/index.js",
"author": {
"name": "DeFiChain Foundation",
"email": "engineering@defichain.com",
"url": "https://defichain.com/"
},
"homepage": "https://github.com/DeFiCh/app",
"publicPath": "./",
"config": {
"ainVersion": "4.2.4"
},
"scripts": {
"init": "npm ci --force && cd webapp && npm run init",
"transpile": "tsc --p tsconfig.json && tspr --tsConfig tsconfig.json",
"transpile:prod": "tsc --p tsconfig.production.json && tspr --tsConfig tsconfig.json",
"watch": "tsc -w",
"start": "npm run init && npm run start:dev",
"start:dev": "concurrently -p \"[{time} - {name}]\" -n \"ReactApp,Electron\" -c \"bgMagenta.black.bold,bgCyan.black.bold\" -t \"hh:mm:ss a\" \"npm run start:react\" \"npm run start:electron\"",
"start:react": "cd webapp && npm run start:dev",
"start:electron": "node ./scripts/electron",
"start:electron-url": "export ELECTRON_START_URL=http://localhost:5001 && electron --inspect .",
"electron": "npm run transpile && cross-env NODE_ENV=development electron --inspect . -d true",
"build:react": "cd webapp && npm run build:react",
"prebuild": "node ./scripts/prebuild",
"pre:build:linux": "node ./scripts/prebuild linux",
"pre:build:mac": "node ./scripts/prebuild mac",
"pre:build:win": "node ./scripts/prebuild win",
"build:electron": "npm run build:react && npm run transpile:prod && npm run set_env:prod",
"build": "npm run build:electron && electron-builder",
"build:all": "npm run build:electron && electron-builder -mwl",
"build:linux": "npm run pre:build:linux && npm run build:electron && electron-builder --linux -p never",
"build:mac": "npm run pre:build:mac && npm run build:electron && electron-builder --mac --x64 --arm64 -p never",
"build:win": "npm run pre:build:win && npm run build:electron && electron-builder --win -p never",
"pack": "npm run build:electron && electron-builder --dir",
"postinstall": "electron-builder install-app-deps",
"publish": "npm run build:react && npm run transpile:prod && npm run set_env:prod && electron-builder build -p always",
"test:react": "cd webapp/ && npm run test",
"test:react:snapshot": "cd webapp/ && npm run test:snapshot:update",
"test": "echo \"Error: no test specified\" && exit 1",
"set_env:prod": "cross-env NODE_ENV=production",
"test:jem": "cd webapp/ && jest --coverage"
},
"keywords": [],
"license": "ISC",
"dependencies": {
"7zip-bin": "5.1.1",
"async": "3.2.3",
"auto-launch": "^5.0.5",
"axios": "^0.26.1",
"base-64": "^1.0.0",
"bignumber.js": "^9.0.2",
"bip32": "^2.0.6",
"bip39": "^3.0.4",
"bitcoinjs-lib": "^5.2.0",
"commander": "^8.3.0",
"crypto-js": "^4.1.1",
"electron-debug": "^3.2.0",
"electron-log": "^4.4.8",
"electron-progressbar": "^2.0.1",
"electron-updater": "5.3.0",
"foreman": "^3.0.1",
"glob": "^7.2.0",
"http-status-codes": "^2.2.0",
"ini": "^2.0.0",
"lodash": "^4.17.21",
"loglevel": "^1.8.0",
"node-disk-info": "1.3.0",
"os": "^0.1.2",
"os-name": "4.0.0",
"ps-node": "^0.1.6",
"random-binary": "^1.0.3",
"random-string": "^0.2.0",
"semver": "^7.5.4",
"uifx": "^2.0.7",
"utf8": "^3.0.0"
},
"devDependencies": {
"@babel/preset-typescript": "^7.16.7",
"@electron/notarize": "^2.3.0",
"@electron/typescript-definitions": "^8.10.0",
"@types/auto-launch": "^5.0.2",
"@types/base-64": "^1.0.0",
"@types/crypto-js": "^4.1.1",
"@types/ini": "^1.3.31",
"@types/node": "16.11.4",
"@types/random-string": "0.0.28",
"@types/semver": "7.3.9",
"@types/utf8": "^3.0.1",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"@uqt/ts-path-replace": "1.1.1",
"babel-preset-env": "^1.7.0",
"concurrently": "7.6.0",
"cross-env": "7.0.3",
"decompress": "^4.2.1",
"electron": "^27.3.8",
"electron-builder": "24.12.0",
"electron-devtools-installer": "^3.2.0",
"eslint": "^8.12.0",
"file-loader": "^6.2.0",
"husky": "^4.3.8",
"install": "^0.13.0",
"jest": "^27.5.1",
"lint-staged": "^12.3.7",
"nodejs-file-downloader": "^4.9.3",
"prettier": "^2.6.1",
"pretty-quick": "^3.1.3",
"typescript": "^4.6.3"
},
"build": {
"productName": "DeFi Wallet",
"appId": "com.defichain.DeFiWallet",
"copyright": "Copyright © 2020-2023 ${author}",
"asar": true,
"afterSign": "electron-app/assets/notarize.js",
"files": [
"./electron-app/build",
{
"from": "./webapp/build/release/",
"to": "./webapp",
"filter": ["**/*"]
}
],
"extraResources": [
{
"from": "./bin",
"to": "./bin",
"filter": ["**/*"]
},
{
"from": "./DO_NOT_SAVE_WALLETS_HERE",
"to": "../DO_NOT_SAVE_WALLETS_HERE",
"filter": ["**/*"]
}
],
"icon": "electron-app/assets/icon/icon-512.png",
"dmg": {
"sign": false,
"icon": "electron-app/assets/icon/mac/app.icns",
"contents": [
{
"x": 40,
"y": 150
},
{
"x": 350,
"y": 150,
"type": "link",
"path": "/Applications"
}
]
},
"linux": {
"icon": "electron-app/assets/icon/linux/512x512.png",
"target": ["AppImage"]
},
"win": {
"target": "NSIS"
},
"mac": {
"category": "public.app-category.finance",
"target": [
{
"target": "dmg",
"arch": ["x64", "arm64", "universal"]
}
],
"mergeASARs": true,
"x64ArchFiles": "*",
"type": "distribution",
"hardenedRuntime": true,
"entitlements": "electron-app/assets/entitlements.mac.plist",
"entitlementsInherit": "electron-app/assets/entitlements.mac.plist",
"gatekeeperAssess": false
},
"nsis": {
"allowToChangeInstallationDirectory": true,
"oneClick": false
},
"publish": {
"provider": "github",
"repo": "app",
"owner": "DeFiCh",
"releaseType": "prerelease"
}
},
"lint-staged": {
"webapp/**/*.ts": "npm run lint:webapp",
"webapp/**/*.tsx": "npm run lint:webapp",
"electron-app/**/*.ts": "npm run lint",
"electron-app/**/*.tsx": "npm run lint"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
},
"engines": {
"node": ">=15"
}
}