-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
181 lines (181 loc) · 6.72 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
{
"name": "tdex-app",
"version": "2.0.0",
"private": true,
"description": "Mobile app for making trades on TDEX",
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"eslintConfig": {
"extends": [
"react-app"
],
"globals": {
"module": true
},
"rules": {
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-module-boundary-types": [
"error",
{
"allowArgumentsExplicitlyTypedAsAny": true
}
],
"@typescript-eslint/array-type": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/prefer-for-of": "error",
"import/first": "error",
"import/order": [
"error",
{
"alphabetize": {
"order": "asc",
"caseInsensitive": false
},
"groups": [
[
"builtin",
"external"
],
"parent",
[
"sibling",
"index"
]
],
"newlines-between": "always"
}
],
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"import/no-mutable-exports": "error"
}
},
"scripts": {
"android": "ionic capacitor run android",
"android:serve": "ionic capacitor run android -l --external",
"android:serve-prod": "NODE_ENV=production ionic capacitor run android --external --prod --debug",
"build": "ionic build",
"build:android": "ionic capacitor build android --no-open",
"build:ios": "ionic capacitor build ios --no-open",
"build:proto": "buf generate buf.build/tdex-network/tdex-protobuf",
"build:trade-swagger-v1": "npx swagger-typescript-api -p https://raw.githubusercontent.com/tdex-network/tdex-protobuf/v1/api-spec/openapi/swagger/tdex/v1/trade.swagger.json -o src/api-spec/openapi/swagger/v1/trade --axios --modular",
"build:transport-swagger-v1": "npx swagger-typescript-api -p https://raw.githubusercontent.com/tdex-network/tdex-protobuf/v1/api-spec/openapi/swagger/tdex/v1/transport.swagger.json -o src/api-spec/openapi/swagger/v1/transport --axios --modular",
"build:trade-swagger-v2": "npx swagger-typescript-api -p https://raw.githubusercontent.com/tdex-network/tdex-protobuf/v1/api-spec/openapi/swagger/tdex/v2/trade.swagger.json -o src/api-spec/openapi/swagger/v2/trade --axios --modular",
"build:transport-swagger-v2": "npx swagger-typescript-api -p https://raw.githubusercontent.com/tdex-network/tdex-protobuf/v1/api-spec/openapi/swagger/tdex/v2/transport.swagger.json -o src/api-spec/openapi/swagger/v2/transport --axios --modular",
"build:swagger": "yarn build:transport-swagger-v1 && yarn build:trade-swagger-v1 && yarn build:transport-swagger-v2 && yarn build:trade-swagger-v2",
"bump": "fastlane bump",
"e2e": "yarn playwright test",
"eslint": "eslint \"./src/**/*.{ts,tsx}\" \"./test/**/*.{ts,tsx}\"",
"fmt": "npm run eslint -- --fix && npm run prettier -- --write",
"ionic:build": "craco build",
"ionic:serve": "craco start",
"ios": "ionic capacitor run ios",
"ios:serve": "ionic capacitor run ios -l --external",
"ios:serve-prod": "NODE_ENV=production ionic capacitor run ios --external --prod --debug",
"lint": "npm run eslint && npm run prettier -- --check",
"prettier": "prettier \"./src/**/*.{ts,tsx}\" \"./test/**/*.{ts,tsx}\"",
"resources": "cordova-res ios --skip-config --copy && cordova-res android --skip-config --copy",
"serve": "ionic serve",
"serve:testnet": "REACT_APP_CHAIN=testnet ionic serve -p 8100",
"serve:no-open": "ionic serve --no-open",
"sync": "ionic cap sync",
"tdex:clean": "bash scripts/tdexd-clean.sh",
"tdex:connect": "docker exec -it tdexd tdexdconnect --out url",
"tdex:run": "bash scripts/tdexd-run",
"tdex:run-init": "bash scripts/tdexd-run-initialized.sh",
"test": "craco test"
},
"dependencies": {
"@awesome-cordova-plugins/clipboard": "^5.46.0",
"@awesome-cordova-plugins/core": "5.46.0",
"@awesome-cordova-plugins/screen-orientation": "5.46.0",
"@capacitor-community/barcode-scanner": "^3.0.3",
"@capacitor-community/react-hooks": "^0.0.11",
"@capacitor/android": "^4.8.1",
"@capacitor/app": "^4.1.1",
"@capacitor/core": "^4.8.0",
"@capacitor/device": "^4.1.0",
"@capacitor/ios": "^4.7.3",
"@capacitor/keyboard": "^4.1.1",
"@capacitor/preferences": "^4.0.2",
"@capacitor/splash-screen": "^4.2.0",
"@capacitor/status-bar": "^4.1.1",
"@cheprasov/react-qrcode": "^1.0.1",
"@ionic/react": "^6.7.4",
"@ionic/react-router": "^6.7.4",
"@protobuf-ts/grpcweb-transport": "^2.9.0",
"@protobuf-ts/runtime": "^2.9.0",
"@protobuf-ts/runtime-rpc": "^2.9.0",
"@types/lodash.merge": "^4.6.7",
"@vulpemventures/secp256k1-zkp": "3.1.0",
"antd-css-utilities": "^1.0.3",
"axios": "^0.27.2",
"bip32": "^3.1.0",
"bip39": "^3.1.0",
"bitcoinjs-lib": "6.1.3",
"buffer": "^6.0.3",
"buffer-json": "^2.0.0",
"classnames": "^2.3.2",
"coinselect": "^3.1.13",
"cordova-clipboard": "^1.3.0",
"crypto-browserify": "^3.12.0",
"decimal.js": "^10.4.3",
"ecpair": "^2.1.0",
"es6-promise-plugin": "^4.2.2",
"find-webpack": "^2.2.1",
"ionicons": "^6.1.3",
"liquidjs-lib": "6.0.2-liquid.28",
"lodash.merge": "^4.6.2",
"moment": "^2.29.4",
"os-browserify": "^0.3.0",
"path-browserify": "^1.0.1",
"pegin": "0.1.7",
"process": "^0.11.10",
"qs": "^6.11.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router": "^5.3.4",
"react-router-dom": "^5.3.4",
"scrypt-js": "^3.0.1",
"slip77": "0.2.0",
"stream-browserify": "^3.0.0",
"tiny-secp256k1": "2.2.3",
"util": "^0.12.5",
"ws-electrumx-client": "1.0.5",
"zustand": "^4.3.9"
},
"devDependencies": {
"@capacitor/cli": "^4.8.1",
"@craco/craco": "^7.1.0",
"@ionic/cli": "^6.20.9",
"@ionic/prettier-config": "^2.1.2",
"@playwright/test": "^1.29.2",
"@testing-library/jest-dom": "^5.16.5",
"@types/bs58check": "^2.1.0",
"@types/buffer-json": "^2.0.1",
"@types/node": "^16.11.49",
"@types/qs": "^6.9.7",
"@types/react": "^18.0.35",
"@types/react-dom": "^18.0.11",
"@types/react-router": "^5.1.20",
"@types/react-router-dom": "^5.3.3",
"cordova-res": "^0.15.4",
"jest-canvas-mock": "^2.4.0",
"prettier": "^2.8.8",
"react-scripts": "^5.0.1",
"sass": "^1.62.1",
"typescript": "4.9.4"
}
}