This repository has been archived by the owner on Nov 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
176 lines (176 loc) · 5.58 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
{
"name": "defi-app",
"version": "1.2.0",
"description": "Defi blockchain client ui",
"main": "./electron-app/build/index.js",
"author": {
"name": "Cake",
"email": "[email protected]",
"url": "http://cakedefi.com/"
},
"homepage": "./",
"publicPath": "./",
"scripts": {
"init": "npm i && cd webapp && npm run init",
"transpile": "tsc",
"watch": "tsc -w",
"start": "npm run init && npm run start:dev",
"start:dev": "nf start",
"start:react": "cd webapp && npm run start:dev",
"start:electron": "node initiate-electron",
"start:electron-url": "export ELECTRON_START_URL=http://localhost:5000 && electron .",
"electron": "npm run transpile && NODE_ENV=development electron . -d true",
"build:react": "cd webapp && npm run build:react",
"pre:build:linux": "sh pre-build-linux.sh",
"pre:build:mac": "sh pre-build-mac.sh",
"pre:build:win": "sh pre-build-win.sh",
"build": "npm run build:react && npm run transpile && NODE_ENV=production electron-builder",
"build:all": "npm run build:react && npm run transpile && NODE_ENV=production electron-builder -mwl",
"build:linux": "npm run pre:build:linux && npm run build:react && npm run transpile && NODE_ENV=production electron-builder --linux",
"build:mac": "npm run pre:build:mac && npm run build:react && npm run transpile && NODE_ENV=production electron-builder --mac",
"build:win": "npm run pre:build:win && npm run build:react && npm run transpile && NODE_ENV=production electron-builder --win",
"pack": "npm run build:react && npm run transpile && NODE_ENV=production electron-builder --dir",
"lint": "tslint --project tsconfig.json --config tslint.json",
"lint:webapp": "tslint -p webapp/tsconfig.json -c tslint.json",
"postinstall": "electron-builder install-app-deps",
"publish": "npm run build:react && npm run transpile && NODE_ENV=production electron-builder build -p always",
"publish:linux": "npm run build:react && npm run transpile && NODE_ENV=production electron-builder build -p always",
"publish:mac": "npm run build:react && npm run transpile && NODE_ENV=production electron-builder build -p always",
"publish:win": "npm run build:react && npm run transpile && SET NODE_ENV=production & 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"
},
"keywords": [],
"license": "ISC",
"dependencies": {
"@babel/preset-typescript": "^7.9.0",
"auto-launch": "^5.0.5",
"autoprefixer": "^9.7.5",
"axios": "^0.19.2",
"base-64": "^0.1.0",
"bignumber.js": "^9.0.0",
"bootstrap": "^4.5.2",
"commander": "^5.1.0",
"crypto-js": "^4.0.0",
"d3-fetch": "^1.1.2",
"d3-scale": "^3.2.1",
"electron-log": "^4.2.1",
"electron-progressbar": "^1.2.0",
"electron-root-path": "^1.0.16",
"electron-updater": "^4.3.1",
"foreman": "^3.0.1",
"glob": "^7.1.6",
"http-status-codes": "^1.4.0",
"ini": "^1.3.5",
"lodash": "^4.17.20",
"loglevel": "^1.6.8",
"moment": "^2.25.3",
"os": "^0.1.1",
"pretty-quick": "^2.0.1",
"prop-types": "^15.7.2",
"ps-node": "^0.1.6",
"qrcode.react": "^1.0.0",
"random-string": "^0.2.0",
"react-ellipsis-text": "^1.2.1",
"react-md-spinner": "^1.0.0",
"uid": "^1.0.0",
"uifx": "^2.0.7",
"utf8": "^3.0.0"
},
"devDependencies": {
"@electron/typescript-definitions": "^8.7.3",
"@types/auto-launch": "^5.0.1",
"@types/base-64": "^0.1.3",
"@types/crypto-js": "^3.1.44",
"@types/ini": "^1.3.30",
"@types/node": "^12.12.37",
"@types/random-string": "0.0.28",
"@types/utf8": "^2.1.6",
"@typescript-eslint/eslint-plugin": "^2.29.0",
"@typescript-eslint/parser": "^2.29.0",
"babel-preset-env": "^1.7.0",
"babel-register": "^6.26.0",
"electron": "^8.2.0",
"electron-builder": "^22.4.1",
"eslint": "^6.8.0",
"file-loader": "^6.0.0",
"husky": "^4.2.5",
"install": "^0.13.0",
"jest": "^25.2.4",
"lint-staged": "^10.2.9",
"neutrino": "^9.3.0",
"node-sass": "^4.13.1",
"npm": "^6.14.8",
"prettier": "^2.0.5",
"ts-loader": "^6.2.2",
"tslint": "^6.1.2",
"typescript": "^3.8.3"
},
"build": {
"appId": "defi-electron-v1",
"copyright": "Copyright © 2020 ${author}",
"asar": true,
"files": [
"./electron-app/build",
{
"from": "./webapp/build/release/",
"to": "./webapp",
"filter": [
"**/*"
]
}
],
"extraResources": [
{
"from": "./binary/",
"to": "./binary",
"filter": [
"**/*"
]
}
],
"icon": "electron-app/assets/icon/icon-512.png",
"dmg": {
"icon": "electron-app/assets/icon/mac/app.icns",
"contents": [
{
"x": 40,
"y": 150
},
{
"x": 350,
"y": 150,
"type": "link",
"path": "/Applications"
}
]
},
"linux": {
"target": [
"AppImage",
"deb"
]
},
"win": {
"target": "NSIS"
},
"publish": {
"provider": "github",
"repo": "defi-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 && lint-staged"
}
}
}