-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
168 lines (168 loc) · 4.75 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
{
"name": "admin-website-v2",
"version": "1.0.0",
"hasInstallScript": "true",
"scripts": {
"dev": "vite --port 4173",
"build": "tsc && npm run build:css && vite build && cp ./_headers ./dist",
"build:css": "postcss src/tailwind.css -o src/index.css",
"start": "npm-run-all -p start:*",
"start:css": "postcss src/tailwind.css -o src/index.css --watch",
"start:dev": "sleep 3 && vite",
"serve": "npm run build && vite preview",
"test": "jest",
"test:watch": "jest --watch",
"integration:blockchain": "ganache --mnemonic \"indicate swing place chair flight used hammer soon photo region volume shuffle\"",
"integration:local": "npm run serve",
"integration:metamask": "npm-run-all --serial integration:wait \"integration:transfers {1} \" --",
"integration:wait": "wait-on -l -i 1000 tcp:8545 http-get://localhost:4173",
"integration:transfers": "node --experimental-modules ./integration/index.mjs",
"integration:dappeteer": "npm-run-all --parallel integration:blockchain integration:local \"integration:metamask {1}\" --race --",
"lint": "eslint ./src ./integration --ext .js,.ts,.tsx,.mjs --max-warnings 0",
"lint:fix": "npm run lint -- --fix"
},
"dependencies": {
"@emotion/css": "^11.1.3",
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"@govtechsg/document-store": "^2.6.1",
"ethers": "^5.7.2",
"html-react-parser": "^1.2.6",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-shepherd": "^3.3.3"
},
"devDependencies": {
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.5",
"@babel/preset-react": "^7.14.5",
"@babel/preset-typescript": "^7.14.5",
"@chainsafe/dappeteer": "^5.2.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@types/jest": "^26.0.23",
"@types/node": "^15.12.2",
"@types/react": "^17.0.11",
"@types/react-autosuggest": "^10.1.5",
"@types/react-dom": "^17.0.8",
"@typescript-eslint/eslint-plugin": "^4.27.0",
"@typescript-eslint/parser": "^4.27.0",
"@vitejs/plugin-react-refresh": "^1.3.3",
"autoprefixer": "^10.2.6",
"babel-jest": "^27.0.2",
"chai": "^4.3.10",
"eslint": "^7.28.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eth-rpc-errors": "^4.0.3",
"ganache": "^7.9.1",
"jest": "^29.7.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.3.5",
"postcss-cli": "^8.3.1",
"prettier": "^2.3.1",
"puppeteer": "^21.3.6",
"react-autosuggest": "^10.1.0",
"tailwindcss": "^2.2.0",
"typescript": "^4.9.5",
"vite": "^4.4.9",
"wait-on": "^7.0.1"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"env": {
"browser": true
},
"extends": [
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"plugins": [
"react-hooks"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"react/prop-types": "off",
"react/self-closing-comp": "error",
"array-callback-return": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"no-unused-expressions": "off",
"jest/no-disabled-tests": "error",
"no-shadow": "off"
},
"overrides": [
{
"files": [
"src/**/*.{ts,tsx}"
],
"extends": [
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-shadow": [
"error"
]
}
},
{
"files": [
"*.test.{ts,tsx}"
],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-empty-function": "off"
}
},
{
"files": [
"**/*.test.js"
],
"env": {
"jest": true
},
"extends": [
"plugin:jest/all"
],
"rules": {
"jest/prefer-expect-assertions": "off",
"jest/no-hooks": "off"
}
}
]
},
"prettier": {
"printWidth": 120
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
],
"@babel/preset-typescript",
"@babel/preset-react"
]
}
}