forked from Proof-Of-Humanity/proof-of-humanity-web
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
187 lines (187 loc) · 8.09 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
{
"name": "@kleros/components",
"version": "1.0.0-beta.4",
"main": "components",
"license": "UNLICENSED",
"devDependencies": {
"@babel/core": "^7.12.3",
"@commitlint/cli": "^9.1.2",
"@commitlint/config-conventional": "^9.1.2",
"@graphprotocol/graph-cli": "^0.21.1",
"@graphprotocol/graph-ts": "^0.18.1",
"@next/bundle-analyzer": "^9.5.2",
"@storybook/addon-a11y": "^6.0.28",
"@storybook/addon-essentials": "^6.0.28",
"@storybook/addons": "^6.0.28",
"@storybook/react": "^6.0.28",
"@storybook/theming": "^6.0.28",
"@typescript-eslint/eslint-plugin": "^4.0.1",
"@typescript-eslint/parser": "^4.0.1",
"babel-loader": "^8.1.0",
"babel-plugin-relay": "^10.0.1",
"cross-env": "^7.0.3",
"cross-var": "^1.1.0",
"csv": "^5.3.2",
"depcheck": "^1.0.0",
"electron": "^15.5.5",
"env-cmd": "^10.1.0",
"eslint": "^7.8.1",
"eslint-config-prettier": "^6.11.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-graphql": "^4.0.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-jsx-a11y": "^6.3.1",
"eslint-plugin-mdx": "^1.8.2",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-react": "^7.20.5",
"eslint-plugin-react-hooks": "^4.2.1-rc.3-next-e7d0053e6-20220325",
"eslint-plugin-regex": "^1.2.1",
"eslint-plugin-unicorn": "^21.0.0",
"get-graphql-schema": "^2.1.2",
"graphql": "^15.3.0",
"husky": "^4.2.5",
"isomorphic-unfetch": "^3.0.0",
"lint-staged": "^10.2.11",
"mustache": "^4.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.5",
"react-is": "^16.8.0",
"relay-compiler": "^10.0.1",
"relay-config": "^10.0.1",
"storybook-addon-theme-playground": "^1.3.4",
"storybook-mobile": "^0.1.24",
"typescript": "^4.2.3",
"vscode-apollo-relay": "^1.5.0"
},
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@emotion/core": "^10.0.35",
"@ffmpeg/ffmpeg": "^0.10.1",
"@kleros/archon": "^0.10.4",
"@popperjs/core": "^2.5.3",
"@reach/checkbox": "^0.11.2",
"@react-hook/window-size": "^3.0.7",
"@theme-ui/color": "^0.3.1",
"@theme-ui/presets": "^0.3.0",
"@theme-ui/typography": "^0.3.0",
"@walletconnect/web3-provider": "^1.6.2",
"antd": "^4.19.1",
"authereum": "0.0.4-beta.186",
"base-2048": "^0.0.1",
"buffer": "^5.6.0",
"dataloader": "^2.0.0",
"downshift": "^6.0.6",
"exifremove": "^1.0.1",
"formik": "^2.1.5",
"get-blob-duration": "^1.2.0",
"i18next": "^21.6.14",
"i18next-browser-languagedetector": "^6.1.3",
"jimp": "^0.16.1",
"lodash": "^4.17.21",
"lodash.chunk": "4.2.0",
"lodash.kebabcase": "^4.1.1",
"lodash.orderby": "^4.6.0",
"lodash.startcase": "^4.4.0",
"next": "^12.1.0",
"node-fetch": "^2.6.7",
"path-to-regexp": "^6.1.0",
"pretty-num": "^0.4.0",
"randomstring": "^1.2.2",
"react": "^16.13.1",
"react-accessible-accordion": "^3.3.3",
"react-dom": "^16.13.1",
"react-dropzone": "^11.0.3",
"react-easy-crop": "^4.1.3",
"react-i18next": "^11.15.7",
"react-jazzicon": "^0.1.3",
"react-loading-skeleton": "^2.1.1",
"react-merge-refs": "^1.1.0",
"react-pagination-hook": "0.0.1",
"react-player": "^2.10.0",
"react-popper": "^2.2.3",
"react-relay-network-modern": "^4.7.4",
"react-ripples": "^2.2.1",
"react-scroll-to": "^3.0.0-beta.6",
"react-share": "^4.3.0",
"react-spinners": "^0.9.0",
"react-spring": "^8.0.27",
"react-storage-hooks": "^4.0.1",
"react-tabs": "^3.1.1",
"react-typography": "^0.16.19",
"react-use-measure": "^2.0.2",
"react-use-promise": "^0.3.1",
"react-webcam": "^5.2.0",
"reactjs-popup": "^1.5.0",
"relay-hooks": "^3.7.1",
"relay-runtime": "^10.0.1",
"theme-ui": "^0.3.1",
"timeago-react": "^3.0.0",
"timeago.js": "^4.0.2",
"typography-theme-sutro": "^0.16.19",
"ua-parser-js": "^1.0.2",
"web3": "^1.5.2",
"web3modal": "^1.9.4",
"ws": "^8.6.0",
"yup": "^0.29.3"
},
"lint-staged": {
"*.{graphql,html,json,md,mdx,yaml,yml,ts}": "prettier --write",
"*.{js,mdx}": "eslint --fix"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"body-leading-blank": [
2,
"always"
],
"footer-leading-blank": [
2,
"always"
]
}
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm run depcheck",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"scripts": {
"depcheck": "depcheck . --ignores=@commitlint/*,@typescript-eslint/*,@babel/*,babel-*,typescript,typescript-*,@storybook/*,storybook-*,eslint-*,electron,@graphprotocol/*,react-is,@kleros/components,@kleros/icons,_pages,pages,data,subgraph,buffer,lib,i18n,*public*",
"lint": "eslint --ext js,mdx .",
"dev": "next",
"local:dev:relay": "env-cmd -f .env.local npm run dev:relay:mainnet",
"dev:relay:mainnet": "get-graphql-schema https://gateway.thegraph.com/api/f622d9e3c38f0636cea21f70d7c75c47/subgraphs/id/0xb2a33ae0e07fd2ca8dbde9545f6ce0b3234dc4e8-0 > subgraph/build/full-schema.graphql && get-graphql-schema https://gateway.thegraph.com/api/f622d9e3c38f0636cea21f70d7c75c47/subgraphs/id/0xb2a33ae0e07fd2ca8dbde9545f6ce0b3234dc4e8-0 --json > subgraph/build/full-schema.json && relay-compiler --watch",
"local:dev:relay:test": "env-cmd -f .env.local cross-var 'npm run dev:relay:test:$NEXT_PUBLIC_NETWORK'",
"dev:relay:test:mainnet": "get-graphql-schema https://api.thegraph.com/subgraphs/name/kleros/proof-of-humanity-mainnet > subgraph/build/full-schema.graphql && get-graphql-schema https://api.thegraph.com/subgraphs/name/kleros/proof-of-humanity-mainnet --json > subgraph/build/full-schema.json && relay-compiler --watch",
"dev:relay:test:goerli": "get-graphql-schema https://api.thegraph.com/subgraphs/name/bilinkis/proof-of-humanity-goerli > subgraph/build/full-schema.graphql && get-graphql-schema https://api.thegraph.com/subgraphs/name/bilinkis/proof-of-humanity-goerli --json > subgraph/build/full-schema.json && relay-compiler --watch",
"build": "npm run build:graph:mainnet && npm run build:mainnet",
"build:mainnet": "npm run dev:relay:mainnet -- --watch=false && next build",
"build:test:goerli": "npm run dev:relay:test:goerli -- --watch=false && next build",
"build:test:mainnet": "npm run dev:relay:test:mainnet -- --watch=false && next build",
"build:analyze": "cross-env ANALYZE=true npm run build:test:goerli",
"local:build:graph": "env-cmd -f .env.local npm run build:graph:mainnet",
"build:graph:mainnet": "cd subgraph && mustache config/mainnet.json subgraph.template.yaml > subgraph.yaml && graph codegen && graph build",
"local:build:graph:test": "env-cmd -f .env.local npm run build:graph:test",
"build:graph:test": "cross-var 'npm run build:graph:test:$NEXT_PUBLIC_NETWORK'",
"build:graph:test:goerli": "cd subgraph && mustache config/goerli.json subgraph.template.yaml > subgraph.yaml && graph codegen && graph build",
"build:graph:test:mainnet": "npm run build:graph:mainnet",
"deploy:graph:test:goerli": "npm run build:graph:test:goerli && cd subgraph && graph deploy --product hosted-service bilinkis/proof-of-humanity-goerli",
"deploy:graph:test:mainnet": "npm run build:graph:test:mainnet && cd subgraph && graph deploy --product hosted-service kleros/proof-of-humanity-mainnet",
"deploy:graph:mainnet": "npm run build:graph:mainnet && cd subgraph && graph deploy --studio poh",
"storybook": "start-storybook --config-dir components/.storybook --static-dir components/.storybook/public --port 6006 --no-dll",
"build-storybook": "build-storybook --config-dir components/.storybook --static-dir components/.storybook/public --no-dll",
"ci:depcheck": "npm run depcheck",
"ci:prettier": "prettier --ignore-path .prettierignore --check .",
"ci:lint": "npm run build:graph:test:goerli && npm run build:test:goerli && npm run lint",
"ci:commitlint": "git log -1 --pretty=format:\"%s\" | commitlint",
"ci": "npm-run-all --parallel ci:**",
"components:publish": "npm publish --access public --tag beta"
},
"volta": {
"node": "14.17.0"
}
}