-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
157 lines (157 loc) · 5.64 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
{
"name": "gafi-dashboard",
"version": "monthly-2022-01",
"private": true,
"author": "Parity Technologies <[email protected]>",
"license": "Unlicense",
"bugs": {
"url": "https://github.com/cryptoviet/gafi-app/issues"
},
"keywords": [
"substrate",
"substrate-ui",
"polkadot-js"
],
"scripts": {
"start": "react-app-rewired start",
"start:prod": "env-cmd -f .env.production react-app-rewired start",
"start:rococo": "env-cmd -f .env.rococo react-app-rewired start",
"build": "env-cmd -f .env.production react-app-rewired build",
"build:rococo": "env-cmd -f .env.rococo react-app-rewired build",
"typegen": "yarn get:testnet:metadata && yarn generate:defs && yarn generate:meta",
"mainnet:typegen": "yarn mainnet:generate:defs && yarn mainnet:generate:meta",
"get:testnet:metadata": "rm -rf ./edgeware.json && curl -H \"Content-Type: application/json\" -d '{\"id\":\"1\", \"jsonrpc\":\"2.0\", \"method\": \"state_getMetadata\", \"params\":[]}' http://rpc-testnet.gafi.network >> edgeware.json",
"generate:defs": "ts-node --skip-project node_modules/.bin/polkadot-types-from-defs --package gafi-dashboard/interfaces --input ./src/interfaces --endpoint ./edgeware.json",
"generate:meta": "ts-node --skip-project node_modules/.bin/polkadot-types-from-chain --package gafi-dashboard/interfaces --endpoint ./edgeware.json --output ./src/interfaces",
"generate:graphql": "graphql-codegen",
"test:app": "react-app-rewired test App.js --env=puppeteer --testTimeout=50000 ",
"test:faucet": "react-app-rewired test Faucet.js --env=puppeteer --testTimeout=30000 ",
"test": "react-app-rewired test",
"eject": "react-scripts eject",
"eslint:check": "eslint --ext .tsx,.ts src/",
"eslint-fix": "eslint --cache --fix --max-warnings=44 --ext .tsx,.ts src/",
"prettier:check": "prettier -c src/*",
"prettier:write": "prettier -w src/*",
"hooks:pre-commit": "lint-staged",
"deploy": "gh-pages -d build -m '[ci skip] Updates'",
"deploy:mainnet": "yarn build && firebase use gafi-c2fcf && firebase deploy",
"deploy:rococo:preview": "yarn build:rococo && firebase use gafi-c2fcf && firebase hosting:channel:deploy gari-dashboard"
},
"jest": {
"preset": "jest-puppeteer"
},
"dependencies": {
"@chakra-ui/react": "^1.8.7",
"@chakra-ui/theme-tools": "^2.0.2",
"@emotion/react": "^11",
"@emotion/styled": "^11",
"@ethersproject/bignumber": "^5.6.0",
"@graphql-codegen/cli": "^2.6.2",
"@graphql-codegen/typescript": "^2.4.11",
"@graphql-codegen/typescript-operations": "^2.4.0",
"@graphql-codegen/typescript-react-query": "^3.5.12",
"@hookform/error-message": "^2.0.0",
"@mdi/js": "^6.6.96",
"@mdi/react": "^1.5.0",
"@polkadot/api": "^8.1.1",
"@polkadot/extension-dapp": "0.43.1",
"@polkadot/keyring": "^9.0.1",
"@polkadot/networks": "^8.4.1",
"@polkadot/types": "^8.1.1",
"@polkadot/ui-keyring": "2.0.1",
"@polkadot/ui-settings": "2.0.1",
"@polkadot/util": "^9.0.1",
"@polkadot/util-crypto": "^9.0.1",
"@rehooks/local-storage": "^2.4.4",
"@types/jest": "27.5.1",
"axios": "^1.1.2",
"ethers": "^5.6.8",
"framer-motion": "^6",
"graphql": "^16.5.0",
"graphql-request": "^4.2.0",
"i18next": "^21.8.0",
"i18next-browser-languagedetector": "^6.1.4",
"i18next-http-backend": "^1.4.0",
"lodash": "^4.17.21",
"node-polyfill-webpack-plugin": "^1.1.4",
"prop-types": "^15.8.1",
"puppeteer": "^14.3.0",
"react": "^17.0.2",
"react-copy-to-clipboard": "^5.0.4",
"react-dom": "^17.0.2",
"react-dropzone": "^12.0.4",
"react-ga": "^3.3.1",
"react-hook-form": "^7.30.0",
"react-i18next": "^11.16.9",
"react-json-view": "^1.21.3",
"react-query": "^3.34.19",
"react-router-dom": "^5.2.0",
"react-scripts": "^5.0.0",
"react-test-renderer": "^18.2.0",
"stream-browserify": "^3.0.0",
"use-query-params": "^1.2.3",
"use-wallet": "^0.13.4",
"web3": "^1.7.1",
"web3-utils": "1.7.1"
},
"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/eslint-parser": "^7.18.2",
"@babel/preset-env": "^7.18.6",
"@polkadot/typegen": "^8.1.1",
"@testing-library/react": "release-12.x",
"@tsconfig/recommended": "^1.0.1",
"@types/node": "^17.0.23",
"@types/react": "^17.0.43",
"@types/react-copy-to-clipboard": "^5.0.2",
"@types/react-dom": "^17.0.14",
"@types/react-router-dom": "^5.3.2",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"babel-plugin-import": "^1.13.3",
"core-js": "3.6.5",
"env-cmd": "^10.1.0",
"eslint": "^8.10.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.4.0",
"eslint-config-react-app": "^6.0.0",
"eslint-plugin-jest": "^26.5.3",
"eslint-plugin-only-warn": "^1.0.3",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.4.0",
"gh-pages": "^3.2.3",
"jest-puppeteer": "^6.1.0",
"lint-staged": ">=10",
"prettier": "2.5.1",
"react-app-rewired": "^2.2.1",
"semistandard": "^16.0.1",
"ts-node": "^10.7.0",
"typescript": "^4.6.3"
},
"resolutions": {
"eslint-plugin-jsx-a11y": "6.5.1"
},
"engines": {
"node": ">=16",
"npm": ">=8"
},
"browserslist": {
"production": [
">0.2%",
"not ie <= 99",
"not android <= 4.4.4",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"lint-staged": {
"*.(t|j)s?(x)": "yarn eslint-fix"
},
"packageManager": "[email protected]"
}