forked from OlympusDAO/olympus-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
195 lines (195 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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
{
"name": "@scaffold-eth/react-app",
"version": "1.1.0",
"homepage": ".",
"browserslist": [
">0.2% or last 2 versions",
"not dead",
"not op_mini all"
],
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!<rootDir>/node_modules/",
"!src/locales/translations/**",
"!src/typechain/**"
],
"coverageThreshold": {
"global": {
"branches": 50,
"functions": 50,
"lines": 50,
"statements": 50
}
},
"coverageReporters": [
"text",
"json-summary",
"text-summary",
"lcov"
]
},
"dependencies": {
"@apollo/client": "^3.6.6",
"@coinbase/wallet-sdk": "^3.2.0",
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@ethersproject/address": "^5.6.1",
"@ethersproject/providers": "^5.6.8",
"@ledgerhq/iframe-provider": "^0.4.2",
"@lingui/react": "^3.13.3",
"@mui/icons-material": "^5.8.3",
"@mui/material": "^5.8.3",
"@multifarm/widget": "^0.0.125",
"@olympusdao/component-library": "^2.0.4",
"@reduxjs/toolkit": "^1.8.2",
"@types/material-ui": "^0.21.12",
"@walletconnect/web3-provider": "^1.7.8",
"axios": "^0.27.2",
"class-validator": "^0.13.2",
"date-fns": "^2.28.0",
"ethers": "^5.6.8",
"graphql": "^15.8.0",
"graphql-request": "^4.3.0",
"markdown-it": "^13.0.1",
"react": "17.0.2",
"react-countdown": "^2.3.2",
"react-dom": "17.0.2",
"react-ga": "^3.3.0",
"react-ga4": "^1.4.1",
"react-is": "^18.1.0",
"react-query": "^3.39.1",
"react-redux": "^8.0.2",
"react-router-dom": "^6.3.0",
"react-scripts": "^5.0.1",
"react-step-progress-bar": "^1.0.3",
"react-uid": "^2.3.2",
"recharts": "^2.1.10",
"typescript": "^4.7.3",
"web3modal": "^1.9.7"
},
"devDependencies": {
"@babel/core": "^7.18.2",
"@babel/plugin-proposal-class-properties": "^7.17.12",
"@babel/plugin-proposal-object-rest-spread": "^7.18.0",
"@babel/plugin-proposal-private-methods": "^7.17.12",
"@babel/plugin-proposal-private-property-in-object": "^7.17.12",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-flow": "^7.14.5",
"@babel/plugin-transform-destructuring": "^7.18.0",
"@babel/plugin-transform-react-jsx": "^7.17.12",
"@babel/plugin-transform-regenerator": "^7.18.0",
"@babel/preset-react": "^7.17.12",
"@babel/runtime": "^7.18.3",
"@chainsafe/dappeteer": "^2.4.1",
"@ethersproject/abi": "^5.6.3",
"@ethersproject/bytes": "^5.6.1",
"@lingui/cli": "^3.13.3",
"@lingui/core": "^3.13.0",
"@lingui/macro": "^3.13.3",
"@testing-library/dom": "^8.13.0",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^12.1.5",
"@typechain/ethers-v5": "^8.0.2",
"@types/css-mediaquery": "^0.1.1",
"@types/expect-puppeteer": "^4.4.7",
"@types/graphql": "^14.5.0",
"@types/jest-environment-puppeteer": "^5.0.2",
"@types/markdown-it": "^12.2.3",
"@types/puppeteer": "^5.4.6",
"@types/react": "^17.0.15",
"@types/react-dom": "^18.0.3",
"@types/react-router-dom": "^5.3.3",
"@types/shelljs": "^0.8.9",
"@types/uuid": "^8.3.1",
"@typescript-eslint/eslint-plugin": "^5.27.1",
"@typescript-eslint/parser": "^5.27.1",
"assert": "^2.0.0",
"autoprefixer": "^10.4.7",
"babel-plugin-macros": "^3.1.0",
"babel-plugin-transform-imports": "^2.0.0",
"css-mediaquery": "^0.1.2",
"eslint": "^8.17.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.30.0",
"eslint-plugin-react-hooks": "^4.5.0",
"eslint-plugin-simple-import-sort": "^7.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
"fast-check": "^3.0.0",
"hardhat": "^2.9.9",
"https-browserify": "^1.0.0",
"husky": "^8.0.1",
"jest": "^28.1.1",
"jest-extended": "^2.0.0",
"jest-puppeteer": "^6.1.0",
"jest-when": "^3.5.1",
"less-plugin-npm-import": "^2.1.0",
"lint-staged": "^13.0.1",
"node-watch": "^0.7.1",
"os-browserify": "^0.3.0",
"postcss": "^8.4.14",
"pptr-testing-library": "^0.7.0",
"prettier": "^2.6.2",
"process": "^0.11.10",
"prop-types": "^15.8.1",
"puppeteer": "^14.3.0",
"react-app-rewired": "^2.2.1",
"sass": "^1.52.3",
"shelljs": "^0.8.5",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"type-graphql": "^1.1.1",
"typechain": "^6.0.2",
"url": "^0.11.0"
},
"scripts": {
"build": "yarn lingui:prepare && yarn lingui:extract && yarn lingui:compile && GENERATE_SOURCEMAP=false react-app-rewired build",
"eject": "react-app-rewired eject",
"start": "yarn lingui:prepare && react-app-rewired start",
"test": "react-scripts test",
"test:unit": "react-scripts test --watchAll=false --bail --ci --coverage",
"test:e2e": "react-scripts test --watchAll=false --bail --ci",
"lint": "eslint --config ./.eslintrc.js ./src/ --ext .jsx,.js,.tsx,.ts",
"lint:fix": "prettier --write ./src/ & yarn lint --fix",
"theme": "npx gulp less",
"watch": "node ./scripts/watch.js",
"snapshot": "react-scripts test --updateSnapshot",
"predocker-start": "docker build -t olympus-frontend -f Dockerfile .",
"docker-start": "yarn run postinstall && docker run -it --rm -v `pwd`/src:/usr/src/app/src -v `pwd`/public:/usr/src/app/public -p 3000:3000 olympus-frontend",
"stats": "yarn build --stats && npx webpack-bundle-analyzer ./build/bundle-stats.json",
"lingui:extract": "lingui extract",
"lingui:compile": "lingui compile",
"lingui:branch:main": "cd src/locales/translations && git checkout main && yarn lingui:fetch",
"lingui:branch:develop": "cd src/locales/translations && git checkout develop && yarn lingui:fetch",
"lingui:branch:translators": "cd src/locales/translations && git checkout translators && yarn lingui:fetch",
"lingui:fetch": "cd src/locales/translations && git pull",
"lingui:prepare": "pwd && if [ ! -d src/locales/translations ]; then git clone https://github.com/OlympusDAO/olympus-translations.git src/locales/translations; fi",
"typechain:build": "yarn run typechain --target ethers-v5 --out-dir src/typechain src/abi/*.json src/abi/**/*.json",
"preinstall": "yarn lingui:prepare || exit 0",
"postinstall": "yarn typechain:build && yarn lingui:compile",
"prepare": "husky install"
},
"resolutions": {
"**/prompts": "2.4.2",
"**/shell-quote": "1.7.3",
"**/ejs": "3.1.8",
"**/node-forge": "1.3.1",
"**/url-parse": "1.5.10"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"!(src/locales)src/**/*.{ts,tsx,js,jsx}": [
"eslint --fix",
"prettier --write"
]
}
}