-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
140 lines (140 loc) · 5.4 KB
/
package.json
File metadata and controls
140 lines (140 loc) · 5.4 KB
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
{
"name": "avail-explorer-backend",
"version": "1.0.0",
"description": "Backend server for Avail blockchain explorer",
"main": "dist/index.js",
"scripts": {
"setup": "node setup-dev.js",
"dev": "ENV_FILE=.env.local tsx watch src/index.ts < /dev/null",
"dev:prod": "ENV_FILE=.env.production tsx watch src/index.ts < /dev/null",
"build": "tsc",
"start": "ENV_FILE=.env.production node dist/index.js",
"test": "ENV_FILE=.env.test jest",
"test:watch": "ENV_FILE=.env.test jest --watch",
"test:coverage": "ENV_FILE=.env.test jest --coverage",
"test:unit": "ENV_FILE=.env.test jest tests/unit",
"test:integration": "ENV_FILE=.env.test jest tests/integration",
"test:e2e": "ENV_FILE=.env.test jest tests/e2e",
"test:ci": "ENV_FILE=.env.test jest --coverage --watchAll=false --passWithNoTests",
"test:all": "npm run build && npm run lint && npm test",
"test:critical": "npm run build && npm run lint && npm run test:unit && npm run test:e2e",
"test:api": "ENV_FILE=.env.test jest tests/integration/routes",
"test:camelcase": "ENV_FILE=.env.test jest tests/unit/utils/caseConverter.test.ts",
"test:camelcase-routes": "ENV_FILE=.env.test NODE_ENV=test jest tests/integration/routes/api.test.ts",
"test:camelcase-all": "npm run test:camelcase && npm run test:camelcase-routes",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint src/**/*.ts --fix",
"lint:check": "eslint src/**/*.ts --max-warnings 0",
"format": "prettier --write src/**/*.ts",
"validate:workflows": "node .github/validate-workflows.js",
"verify:blockchain": "tsx scripts/verify-avail-connection.ts",
"demo:queue": "ENV_FILE=.env.local npx tsx scripts/test-queue-service.ts",
"sync:full": "ENV_FILE=.env.local tsx scripts/sync-blockchain-data.ts --mode full",
"sync:incremental": "ENV_FILE=.env.local tsx scripts/sync-blockchain-data.ts --mode incremental",
"sync:live": "ENV_FILE=.env.production tsx scripts/sync-blockchain-data.ts --mode live",
"sync:range": "ENV_FILE=.env.local tsx scripts/sync-blockchain-data.ts --mode range",
"sync:test": "ENV_FILE=.env.local tsx scripts/sync-blockchain-data.ts --mode range --from 1000000 --to 1000010 --batch-size 5",
"db:init": "npm run prisma:migrate:deploy && npm run prisma:generate",
"db:reset": "npm run prisma:migrate:reset && npm run prisma:generate",
"db:seed": "ENV_FILE=.env.local tsx scripts/seed-database.ts",
"db:check": "ENV_FILE=.env.local tsx scripts/check-schema.ts",
"prisma:generate": "dotenv -e .env.local -- prisma generate",
"prisma:migrate:dev": "dotenv -e .env.local -- prisma migrate dev",
"prisma:migrate:deploy": "dotenv -e .env.local -- prisma migrate deploy",
"prisma:migrate:reset": "dotenv -e .env.local -- prisma migrate reset --force",
"prisma:push": "dotenv -e .env.local -- prisma db push",
"prisma:pull": "dotenv -e .env.local -- prisma db pull",
"prisma:studio": "dotenv -e .env.local -- prisma studio",
"pre-commit": "npm run test:critical",
"prepare": "husky install"
},
"dependencies": {
"@polkadot/api": "^16.1.1",
"@polkadot/api-augment": "^16.1.1",
"@polkadot/keyring": "^13.5.1",
"@polkadot/rpc-core": "^16.1.1",
"@polkadot/rpc-provider": "^16.1.1",
"@polkadot/types": "^16.1.1",
"@polkadot/util": "^13.5.1",
"@polkadot/util-crypto": "^13.5.1",
"@prisma/client": "^6.9.0",
"@types/uuid": "^10.0.0",
"avail-js-sdk": "^0.4.2",
"axios": "^1.6.2",
"bull": "^4.12.2",
"cls-hooked": "^4.2.2",
"compression": "^1.7.4",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"express-rate-limit": "^7.1.5",
"express-validator": "^7.0.1",
"helmet": "^7.1.0",
"ioredis": "^5.3.2",
"joi": "^17.11.0",
"node-cron": "^3.0.3",
"pg": "^8.11.3",
"prom-client": "^15.1.0",
"redis": "^4.6.11",
"smoldot": "^2.0.35",
"socket.io": "^4.7.4",
"uuid": "^11.1.0",
"winston": "^3.11.0",
"winston-daily-rotate-file": "^4.7.1",
"ws": "^8.18.2"
},
"devDependencies": {
"@types/bull": "^4.10.0",
"@types/cls-hooked": "^4.3.9",
"@types/compression": "^1.7.5",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.8",
"@types/node": "^20.10.4",
"@types/node-cron": "^3.0.11",
"@types/pg": "^8.10.9",
"@types/supertest": "^6.0.3",
"@types/ws": "^8.18.1",
"@typescript-eslint/eslint-plugin": "^8.33.1",
"@typescript-eslint/parser": "^8.33.1",
"dotenv-cli": "^8.0.0",
"eslint": "^8.55.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"js-yaml": "^4.1.0",
"nodemon": "^3.0.2",
"prettier": "^3.1.0",
"prisma": "^6.9.0",
"socket.io-client": "^4.8.1",
"supertest": "^7.1.1",
"ts-jest": "^29.1.1",
"tsx": "^4.6.2",
"typescript": "^5.8.3"
},
"engines": {
"node": ">=18.0.0"
},
"resolutions": {
"@polkadot/api": "16.1.1",
"@polkadot/api-augment": "16.1.1",
"@polkadot/keyring": "13.5.1",
"@polkadot/rpc-core": "16.1.1",
"@polkadot/rpc-provider": "16.1.1",
"@polkadot/types": "16.1.1",
"@polkadot/util": "13.5.1",
"@polkadot/util-crypto": "13.5.1",
"@polkadot/types-create": "16.1.1",
"@polkadot/types-codec": "16.1.1",
"@polkadot/types-known": "16.1.1",
"@polkadot/api-derive": "16.1.1"
},
"keywords": [
"avail",
"blockchain",
"explorer",
"api",
"backend"
],
"author": "",
"license": "MIT"
}