forked from w3f/1k-validators-be
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
166 lines (166 loc) · 8.42 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
{
"name": "1k-validators-be",
"packageManager": "[email protected]",
"yarnPath": ".yarn/releases/yarn-3.2.2.cjs",
"private": true,
"workspaces": [
"packages/scorekeeper-status-ui",
"packages/common",
"packages/worker",
"packages/gateway",
"packages/telemetry",
"packages/core"
],
"scripts": {
"docs": "cd docs && npm install && npm run build",
"scorekeeper-status-ui:build": "cd packages/scorekeeper-status-ui && npm build",
"scorekeeper-status-ui:dev": "yarn workspace @1kv/scorekeeper-status-ui dev",
"open:polkadot-apps": "open-cli https://polkadot.js.org/apps/?rpc=ws%3A%2F%2F127.0.0.1%3A9944#/staking",
"open:bull": "open-cli http://localhost:3301/bull",
"open:mongo-express: ": "open-cli http://localhost:8888",
"create-config-kusama-current": "yarn workspace @1kv/core run create-config-kusama-current",
"create-config-polkadot-current": "yarn workspace @1kv/core run create-config-polkadot-current",
"create-config-kusama-current-dev": "yarn workspace @1kv/core run create-config-kusama-current-dev",
"create-config-polkadot-current-dev": "yarn workspace @1kv/core run create-config-polkadot-current-dev",
"create-config-kusama-microservice": "yarn workspaces foreach run create-config-kusama-microservice",
"create-config-polkadot-microservice": "yarn workspaces foreach run create-config-polkadot-microservice",
"create-config-kusama-microservice-dev": "yarn workspaces foreach run create-config-kusama-microservice-dev",
"create-config-polkadot-microservice-dev": "yarn workspaces foreach run create-config-polkadot-microservice-dev",
"docker:kusama-current:start": "yarn run create-config-kusama-current && docker compose -f docker-compose.current.yml up -d --build && yarn run docker:logs",
"docker:polkadot-current:start": "yarn run create-config-polkadot-current && docker compose -f docker-compose.current.yml up -d --build && yarn run docker:logs",
"docker:kusama-current-dev:start": "yarn run create-config-kusama-current-dev && docker compose -f docker-compose.yml up -d --build && yarn run docker:logs",
"docker:polkadot-current-dev:start": "yarn run create-config-polkadot-current-dev && docker compose -f docker-compose.yml up -d --build && yarn run docker:logs",
"docker:kusama-microservice:start": "yarn run create-config-kusama-microservice && docker compose -f docker-compose.microservice.yml up -d --build && yarn run docker:logs",
"docker:kusama-microservice-dev:start": "yarn run create-config-kusama-microservice-dev && docker compose -f docker-compose.yml up -d --build && yarn run docker:logs",
"docker:polkadot-microservice:start": "yarn run create-config-polkadot-microservice && docker compose -f docker-compose.microservice.yml up -d --build && yarn run docker:logs",
"docker:polkadot-microservice-dev:start": "yarn run create-config-polkadot-microservice-dev && docker compose -f docker-compose.yml up -d --build && yarn run docker:logs",
"docker:logs": "docker compose logs -f",
"docker:logs:core": "docker logs 1k-validators-be-1kv-core-1 -f",
"docker:logs:gateway": "docker logs 1k-validators-be-1kv-gateway-1 -f",
"docker:logs:telemetry": "docker logs 1k-validators-be-1kv-telemetry-1 -f",
"docker:logs:worker": "docker logs 1k-validators-be-1kv-worker-1 -f",
"docker:stop": "docker compose down",
"lint": "yarn workspaces foreach run lint",
"lint:fix": "yarn workspaces foreach run lint:fix",
"clean": "rm -rf redis/ && yarn workspaces foreach run clean",
"build": "yarn run docs && yarn workspaces foreach -t run build",
"build:prod": "yarn workspaces foreach -pt run build:prod",
"build:core": "yarn workspace @1kv/common run build run build && yarn workspace @1kv/gateway run build && yarn workspace @1kv/telemetry run build && yarn workspace @1kv/worker run build && yarn workspace @1kv/core run build",
"build:clean": "yarn workspaces foreach run clean:build",
"start:dev:gateway": "yarn workspace @1kv/gateway run start:dev",
"start:js:gateway": "NODE_OPTIONS='--max-old-space-size=10096' yarn workspace @1kv/gateway run js:start",
"start:dev:core": "yarn workspace @1kv/core run start:dev",
"start:js:core": "NODE_OPTIONS='--max-old-space-size=10096' yarn workspace @1kv/core run js:start",
"start:dev:telemetry": "yarn workspace @1kv/telemetry run start:dev",
"start:js:telemetry": "NODE_OPTIONS='--max-old-space-size=10096' yarn workspace @1kv/telemetry run js:start",
"start:dev:worker": "yarn workspace @1kv/worker run start:dev",
"start:js:worker": "NODE_OPTIONS='--max-old-space-size=10096' yarn workspace @1kv/worker run js:start",
"test:core": "yarn workspace @1kv/core run test",
"test:common:int": "yarn workspace @1kv/common run test:int",
"test:common:unit": "yarn workspace @1kv/common run test:unit",
"test:common:unit:ci": "circleci local execute CommonUnitTests",
"test:common:int:scorekeeper:ci": "circleci local execute ScorekeeperIntegrationTests",
"test:common:int:chaindata:ci": "circleci local execute ChaindataIntegrationTests",
"test:common:int:apihandler:ci": "circleci local execute ApiHandlerIntegrationTests",
"test:common:int:nominator:ci": "circleci local execute NominatorIntegrationTests",
"test:common:int:ci": "yarn test:common:int:scorekeeper:ci && yarn test:common:int:chaindata:ci && yarn test:common:int:apihandler:ci && yarn test:common:int:nominator:ci",
"test:telemetry:int:ci": "circleci local execute TelemetryIntegrationTests",
"test:ci:all": "yarn test:common:int:ci && yarn test:telemetry:int:ci",
"test:all": "yarn workspaces foreach run test",
"test": "LOG_LEVEL=warn yarn build && vitest run --coverage --config vitest.config.mts",
"test:ui": "LOG_LEVEL=warn vitest --ui --config vitest.config.mts --coverage",
"turbo": "turbo build"
},
"devDependencies": {
"@ava/typescript": "^4.1.0",
"@babel/preset-react": "^7.23.3",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"@vitest/ui": "^1.3.1",
"ava": "^6.1.2",
"concurrently": "^8.2.2",
"esbuild": "^0.20.1",
"esbuild-plugin-node-polyfill": "^0.0.1",
"eslint": "8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-security": "^1.7.1",
"nodemon": "^3.1.0",
"open-cli": "^8.0.0",
"prettier": "^3.2.4",
"typedoc": "^0.25.12",
"typedoc-plugin-markdown": "^3.17.1",
"vite": "^5.1.6",
"vite-plugin-node": "^3.1.0",
"vite-tsconfig-paths": "^4.3.1",
"vitest": "^1.3.1"
},
"dependencies": {
"@1kv/common": "workspace:*",
"@1kv/gateway": "workspace:*",
"@1kv/telemetry": "workspace:*",
"@1kv/worker": "workspace:*",
"@bull-board/api": "^5.15.1",
"@bull-board/koa": "^5.15.0",
"@koa/router": "^12.0.1",
"@octokit/rest": "^20.0.2",
"@polkadot/api": "^11.0.2",
"@polkadot/keyring": "^12.6.2",
"@types/cron": "^2.4.0",
"@types/jest": "^29.5.12",
"@types/koa": "^2.15.0",
"@types/koa-bodyparser": "^4.3.12",
"@types/mongoose": "^5.11.97",
"@types/node": "^20.11.5",
"@types/semver": "^7.5.8",
"@types/ws": "^8.5.10",
"@vitest/coverage-istanbul": "^1.3.1",
"@vitest/coverage-v8": "^1.3.1",
"axios": "^1.6.7",
"bree": "^9.2.2",
"bs58": "^5.0.0",
"bullmq": "^5.4.2",
"chalk": "5.3.0",
"coingecko-api-v3": "^0.0.29",
"commander": "^12.0.0",
"cron": "^3.1.6",
"esbuild-node-builtins": "^0.1.0",
"eventemitter3": "^5.0.1",
"hash.js": "^1.1.7",
"jest": "^29.7.0",
"koa": "^2.15.0",
"koa-bodyparser": "^4.4.1",
"koa-cash": "^4.1.1",
"koa-mount": "^4.0.0",
"koa-send": "^5.0.1",
"koa-static": "^5.0.0",
"koa-swagger-decorator": "^1.8.7",
"koa2-cors": "^2.0.6",
"lru-cache": "^10.2.0",
"matrix-js-sdk": "^31.1.0",
"mongodb": "6.5.0",
"mongodb-memory-server": "^9.1.7",
"mongoose": "^8.2.1",
"node-fetch": "3.3.2",
"prettier": "^3.2.4",
"reconnecting-websocket": "^4.4.0",
"request": "^2.88.2",
"semver": "^7.6.0",
"swagger-jsdoc": "^6.2.8",
"swagger2": "^4.0.3",
"swagger2-koa": "^4.0.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"turbo": "^1.12.5",
"turborepo": "^0.0.1",
"typescript": "^5.3.3",
"vite": "^5.1.6",
"vite-plugin-dts": "^3.7.3",
"vite-plugin-node": "^3.1.0",
"vite-tsconfig-paths": "^4.3.1",
"vitest": "^1.3.1",
"winston": "^3.12.0",
"ws": "^8.16.0",
"yamljs": "^0.3.0"
}
}