-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
170 lines (170 loc) · 7.12 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
{
"name": "vegawallet-browser",
"version": "0.37.0",
"private": true,
"license": "MIT",
"type": "module",
"dependencies": {
"@types/object-hash": "^3.0.4",
"@types/uuid": "^9.0.8",
"@vegaprotocol/crypto": "^0.12.0",
"@vegaprotocol/enums": "^0.0.3",
"@vegaprotocol/protos": "^0.23.0",
"@vegaprotocol/react-helpers": "^0.4.0",
"@vegaprotocol/rest-clients": "^0.0.6",
"@vegaprotocol/tailwindcss-config": "^0.2.0",
"@vegaprotocol/ui-toolkit": "0.14.0",
"@vegaprotocol/utils": "^0.0.14",
"bignumber.js": "^9.0.2",
"classnames": "^2.2.0",
"date-fns": "^2.30.0",
"dotenv": "^16.3.1",
"immer": "^10.0.2",
"is-mobile": "^4.0.0",
"javascript-time-ago": "^2.5.9",
"lodash": "^4.17.21",
"mutexify": "^1.4.0",
"nanoassert": "^2.0.0",
"object-hash": "^3.0.0",
"protobuf-codec": "^1.0.6",
"react": "^18.2.0",
"react-copy-to-clipboard": "^5.1.0",
"react-dom": "^18.2.0",
"react-hook-form": "7.39.1",
"react-i18next": "^15.0.1",
"react-router-dom": "^6.10.0",
"react-time-ago": "^7.2.1",
"read-write-mutexify": "^2.1.0",
"tailwindcss": "^3.3.2",
"tldts": "^6.0.8",
"uuid": "^9.0.1",
"zustand": "^4.3.2",
"zxcvbn": "^4.4.2"
},
"scripts": {
"build": "rollup -c",
"build:test-e2e": "yarn build --wallet-config=test",
"build:dev": "yarn build --wallet-config=dev",
"build:beta": "yarn build --wallet-config=beta",
"build:mainstream": "yarn build --wallet-config=mainstream",
"build:analyze": "NODE_ENV=production yarn build:mainstream --analyze",
"dev": "web-ext run --start-url=https://vegaprotocol.github.io/vegawallet-browser/",
"dev:chrome": "yarn dev --source-dir=build/chrome --target=chromium",
"dev:firefox": "yarn dev --source-dir=build/firefox --devtools --firefox=firefoxdeveloperedition",
"dev:mobile:firefox": "web-ext run -t firefox-android --firefox-apk org.mozilla.fenix --source-dir=build/firefox",
"docs:update-acs": "node ./scripts/update-ac-config.js",
"format": "prettier --check frontend specs examples",
"format:write": "yarn format --write",
"lint": "eslint --ext js,ts,tsx frontend --max-warnings=0",
"lint:write": "yarn lint --fix",
"lint:mobile:firefox": "web-ext lint --source-dir=build/firefox",
"test:backend": "jest --config=test/test-config/jest.config-backend.js -t --testPathIgnorePatterns='.*\\/generate-transactions\\.spec\\.ts'",
"test:requests": "jest --config=test/test-config/jest.config-requests.js --testPathPattern='.*\\/generate-transactions\\.spec\\.ts'",
"test:backend:ci": "yarn test:backend --coverage",
"test:e2e": "jest ./test/e2e --config=test/test-config/jest.config-e2e.js --maxWorkers=1 --testPathIgnorePatterns='keep-alive.spec.ts'",
"test:e2e:chrome": "BROWSER=chrome yarn test:e2e",
"test:e2e:chrome:ci": "HEADLESS=true yarn test:e2e:chrome",
"test:e2e:firefox": "BROWSER=firefox yarn test:e2e",
"test:e2e:firefox:ci": "HEADLESS=true yarn test:e2e:firefox",
"test:console": "jest ./test/console-smoke --config=test/test-config/jest.config-console-smoke.js --maxWorkers=1",
"test:console:testnet": "ENV=testnet yarn test:console",
"test:console:mainnet": "ENV=mainnet yarn test:console",
"test:console:testnet:ci": "./.github/scripts/deployment/deploy_console.sh testnet && yarn test:console:testnet && ./.github/scripts/deployment/destroy_console.sh",
"test:console:mainnet:ci": "./.github/scripts/deployment/deploy_console.sh mainnet && yarn test:console:mainnet && ./.github/scripts/deployment/destroy_console.sh",
"test:e2e:chrome-upgrade": "jest ./test/upgrade-tests --config=test/test-config/jest.config-upgrade.js --maxWorkers=1",
"test:resillience": "jest ./test/resillience-tests --config=test/test-config/jest.config-resillience.js --maxWorkers=1",
"test:keepalive": "BROWSER=chrome jest ./test/e2e/keep-alive.spec.ts --config=test/test-config/jest.config-e2e.js --maxWorkers=1",
"test:e2e:chrome-upgrade:ci": "./.github/scripts/upgrade-test-download-management/download_old_extension.sh && yarn test:e2e:chrome-upgrade && ./.github/scripts/upgrade-test-download-management/remove_old_extension.sh",
"test:ios": "wdio ./test/mobile/test.conf.cjs",
"test:frontend": "jest --config=test/test-config/jest.config-ui.js",
"test:frontend:ci": "yarn test:frontend --coverage",
"watch": "yarn build:dev -w",
"update-protos": "yarn add @vegaprotocol/protos@latest && node ./scripts/update-transaction-validation.js && yarn build:beta"
},
"browserslist": {
"production": [
"last 10 chrome version",
"last 10 firefox version"
],
"development": [
"last 1 chrome version",
"last 1 firefox version"
],
"test": [
"last 10 chrome version",
"last 10 firefox version"
]
},
"devDependencies": {
"@babel/core": "^7.16.0",
"@babel/plugin-syntax-flow": "^7.14.5",
"@babel/plugin-transform-react-jsx": "^7.14.9",
"@babel/preset-env": "^7.22.4",
"@rollup/plugin-alias": "^5.0.0",
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-html": "^1.0.2",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-replace": "^5.0.2",
"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "^11.1.1",
"@testing-library/dom": "^9.3.3",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^13.5.0",
"@types/archiver": "^5.3.2",
"@types/chrome": "^0.0.231",
"@types/fs-extra": "^11.0.1",
"@types/jest": "^29.5.2",
"@types/lodash": "^4.14.195",
"@types/node": "^16.18.23",
"@types/react": "^18.0.34",
"@types/react-dom": "^18.0.11",
"@types/selenium-webdriver": "^4.1.13",
"@types/zxcvbn": "^4.4.1",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@vegaprotocol/types": "^0.0.8",
"@wdio/browserstack-service": "^8.34.1",
"@wdio/cli": "^8.34.1",
"@wdio/local-runner": "^8.34.1",
"@wdio/mocha-framework": "^8.33.1",
"ajv": "^8.12.0",
"ajv-errors": "^3.0.0",
"archiver": "^5.3.1",
"autoprefixer": "^10.4.14",
"csv-parser": "^3.0.0",
"deepmerge": "^4.3.1",
"eslint": "^8.52.0",
"eslint-config-react-app": "^7.0.1",
"eslint-plugin-jest": "25.7.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unicorn": "^49.0.0",
"fs-extra": "^11.1.0",
"glob": "^10.2.7",
"jest": "^29.5.0",
"jest-canvas-mock": "^2.5.1",
"jest-environment-jsdom": "^29.5.0",
"jest-expect-message": "^1.1.3",
"jest-junit": "^16.0.0",
"jest-webextension-mock": "^3.8.9",
"postcss": "^8.4.24",
"prettier": "^2.8.8",
"resize-observer-polyfill": "^1.5.1",
"rollup": "^3.23.1",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-postcss": "^4.0.2",
"rollup-plugin-visualizer": "^5.9.2",
"selenium-webdriver": "^4.8.2",
"ts-jest": "^29.1.0",
"typescript": "^5.0.4",
"web-ext": "^7.6.1",
"web-vitals": "^2.1.4",
"webdriver": "^8.34.0",
"webextension-polyfill-ts": "^0.26.0"
},
"resolutions": {
"tslib": "^2.3.1",
"wrap-ansi": "7.0.0",
"string-width": "4.2.3"
}
}