-
Notifications
You must be signed in to change notification settings - Fork 40
/
package.json
170 lines (170 loc) · 7.49 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": "@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.71.2",
"@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.20.0",
"@typescript-eslint/parser": "^4.20.0",
"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.0.8",
"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": {
"@emotion/core": "^10.0.35",
"@graphprotocol/graph-ts": "^0.35.1",
"@kleros/archon": "^0.10.4",
"@popperjs/core": "^2.5.3",
"@reach/checkbox": "^0.11.2",
"@theme-ui/color": "^0.3.1",
"@theme-ui/presets": "^0.3.0",
"@theme-ui/typography": "^0.3.0",
"@walletconnect/web3-provider": "^1.6.2",
"authereum": "0.0.4-beta.186",
"base-2048": "^0.0.1",
"buffer": "^5.6.0",
"dataloader": "^2.0.0",
"downshift": "^6.0.6",
"formik": "^2.1.5",
"lodash.chunk": "4.2.0",
"lodash.kebabcase": "^4.1.1",
"lodash.orderby": "^4.6.0",
"lodash.startcase": "^4.4.0",
"next": "^12.1.0",
"path-to-regexp": "^6.1.0",
"pretty-num": "^0.4.0",
"react": "^16.13.1",
"react-accessible-accordion": "^3.3.3",
"react-dom": "^16.13.1",
"react-dropzone": "^11.0.3",
"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.6.1",
"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",
"typography-theme-sutro": "^0.16.19",
"web3": "^1.5.2",
"web3modal": "^1.9.4",
"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,react-is,@kleros/components,@kleros/icons,_pages,data,subgraph,buffer,lib",
"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://api.studio.thegraph.com/query/61738/proof-of-humanity-mainnet/version/latest > subgraph/build/full-schema.graphql && get-graphql-schema https://api.studio.thegraph.com/query/61738/proof-of-humanity-mainnet/version/latest --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.studio.thegraph.com/query/61738/proof-of-humanity-mainnet/version/latest > subgraph/build/full-schema.graphql && get-graphql-schema https://api.studio.thegraph.com/query/61738/proof-of-humanity-mainnet/version/latest --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 proof-of-humanity-mainnet",
"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"
}
}