-
Notifications
You must be signed in to change notification settings - Fork 46
/
package.json
97 lines (97 loc) · 3.71 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
{
"name": "@dzlzv/hydra-indexer",
"private": "true",
"description": "Block index builder for substrate based chains",
"version": "3.0.0-beta.3",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"license": "MIT",
"repository": "git@github.com:Joystream/hydra.git",
"bugs": "https://github.com/Joystream/hydra/issues",
"homepage": "https://www.joystream.org/hydra/",
"files": [
"lib",
"README.md"
],
"scripts": {
"pub": "yarn build && yarn publish --access public",
"docker:build": "docker build . -t joystream/hydra-indexer:${VERSION_TAG:-0.0.0} -t joystream/hydra-indexer:${RELEASE_TAG:-next} -t hydra-indexer:latest",
"docker:publish": "export VERSION_TAG=$(node -p 'require(\"./package.json\").version') && yarn docker:build && docker push joystream/hydra-indexer --all-tags",
"build": "rm -rf lib && tsc --build tsconfig.json",
"lint": "eslint . --cache --ext .ts",
"typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js",
"i-test": "docker-compose -f docker-compose-test.yml up -d && sh ./run-integration-tests.sh",
"post-i-test": "docker-compose -f docker-compose-test.yml down",
"i-test-local": "nyc --extension .ts mocha --exit --timeout 50000 --require ts-node/register --file ./test/integration/setup-db.ts \"test/integration/**/*.test.ts\"",
"db:create": "createdbjs --user=${DB_USER} --password=${DB_PASS} --host=${DB_HOST} --port=${DB_PORT} ${DB_NAME}",
"db:drop": "dropdbjs --user=${DB_USER} --password=${DB_PASS} --host=${DB_HOST} --port=${DB_PORT} ${DB_NAME}",
"db:migrate": "node ./lib/run.js migrate",
"db:bootstrap": "yarn db:create ; yarn db:migrate",
"db:bootstrap:dev": "dotenv -e ${ENV} yarn db:bootstrap",
"start:dev": "NODE_ENV=development ts-node src/run.ts index",
"start:prod": "DEBUG=${DEBUG} node ./lib/run.js index",
"test": "nyc --extension .ts mocha --timeout 50000 --require ts-node/register --forbid-only --exclude \"test/integration/**/*.test.ts\" \"test/**/*.test.ts\" \"src/**/*.test.ts\""
},
"dependencies": {
"@dzlzv/bn-typeorm": "^3.0.0-beta.3",
"@dzlzv/hydra-common": "^3.0.0-beta.3",
"@dzlzv/hydra-db-utils": "^3.0.0-beta.3",
"@polkadot/api": "4.2.1",
"@types/express": "^4.17.8",
"@types/ioredis": "^4.17.4",
"@types/lodash": "^4.14.161",
"@types/shortid": "^0.0.29",
"commander": "^6.2.0",
"debug": "^4.1.1",
"delay": "^5.0.0",
"envalid": "^7.1.0",
"express": "^4.17.1",
"graphql": "15",
"graphql-request": "^3.1.0",
"ioredis": "^4.17.3",
"lodash": "^4.17.20",
"log4js": "^6.3.0",
"make-synchronous": "^0.1.1",
"p-forever": "~2.1.0",
"p-props": "~4.0.0",
"p-retry": "~4.5.0",
"p-time": "~2.1.0",
"p-timeout": "~4.1.0",
"p-wait-for": "~3.2.0",
"p-whilst": "~2.1.0",
"prom-client": "^12.0.0",
"reflect-metadata": "^0.1.13",
"set-interval-async": "^2.0.1",
"shortid": "^2.2.15",
"typeorm": "^0.2.25"
},
"devDependencies": {
"@polkadot/ts": "^0.3.14",
"@types/bn.js": "^4.11.6",
"@types/chai": "^4.2.12",
"@types/debug": "^4.1.5",
"@types/figlet": "^1.2.1",
"@types/mocha": "^8.0.3",
"@types/node": "^10",
"@types/pg": "^7.14.4",
"@types/set-interval-async": "^1.0.0",
"@typescript-eslint/eslint-plugin": "^3.8.0",
"@typescript-eslint/parser": "^3.0.2",
"bn.js": "^5.1.2",
"chai": "^4.2.0",
"docker-compose-mocha": "^1.2.0",
"dotenv": "^8.2.0",
"dotenv-cli": "^4.0.0",
"env-cmd": "^10.1.0",
"eslint": "^7.1.0",
"mocha": "^8.1.3",
"nyc": "^15.1.0",
"pg": "^8.3.2",
"pgtools": "^0.3.0",
"prettier": "^2.1.2",
"ts-mockito": "^2.6.1",
"ts-node": "^9.0.0",
"typescript": "^3.8",
"util": "^0.12.3"
}
}