forked from paritytech/polkadot-testnet-faucet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
100 lines (100 loc) · 3.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
{
"name": "faucet",
"version": "1.1.2",
"description": "",
"main": "build/start.js",
"scripts": {
"build": "tsc",
"build:docker": "docker build -t polkadot-testnet-faucet .",
"dev": "nodemon -- src/start.ts",
"dev:db": "docker run -e 'POSTGRESQL_EXTRA_FLAGS=-c log_statement=all' -e 'POSTGRESQL_PASSWORD=postgres' -e 'POSTGRESQL_DATABASE=faucet' -v \"$(pwd)/data:/bitnami/postgresql\" -p 5432:5432 bitnami/postgresql:15",
"fix": "yarn lint:fix && yarn format:fix",
"format": "prettier ./src ./client/src ./client/tests --check",
"format:fix": "prettier ./src ./client/src ./client/tests --write",
"generate:types": "echo \"declare const schema: $(cat env.faucet.config.json); export default schema;\" > env.faucet.config.json.d.ts",
"generate:papi:e2e": "papi generate --config e2e/polkadot-api-e2e.json",
"lint": "eslint ./src/ ./client/src ./client/tests --ext .js,.ts",
"lint:fix": "eslint ./src/ ./client/src ./client/tests --ext .js,.ts --fix",
"migrations:generate": "typeorm-ts-node-commonjs migration:generate -d src/db/dataSource.ts",
"migrations:run": "typeorm-ts-node-commonjs migration:run -d src/db/dataSource.ts",
"postinstall": "yarn generate:types",
"prebuild": "yarn generate:types",
"prepare": "ts-patch install -s",
"start": "node ./build/src/start.js",
"test": "jest",
"test:e2e": "NODE_OPTIONS='--experimental-vm-modules --es-module-specifier-resolution=node' jest -c jest.e2e.config.js --runInBand --forceExit",
"typecheck": "tsc --noEmit"
},
"author": "",
"license": "ISC",
"lint-staged": {
"./src/**/*.js": [
"prettier --write",
"eslint --fix"
],
"./src/**/*.ts": [
"prettier --write",
"eslint --fix"
],
"./client/**/*.js": [
"cd client && prettier --write",
"cd client && eslint --fix"
],
"./client/**/*.ts": [
"cd client && prettier --write",
"cd client && eslint --fix"
]
},
"simple-git-hooks": {
"pre-commit": "yarn lint-staged"
},
"dependencies": {
"@eng-automation/js": "^2.2.0",
"@polkadot-api/cli": "^0.8.2",
"@polkadot-api/client": "^0.1.0",
"@polkadot-api/node-polkadot-provider": "^0.0.1-9ec1b77fa23d0b4a103b842511687343a72ff08a.1.0",
"@polkadot-api/ws-provider": "^0.2.0",
"@polkadot/api": "^13.0.1",
"@polkadot/keyring": "^13.1.1",
"@polkadot/util": "^13.1.1",
"@polkadot/util-crypto": "^13.1.1",
"@polkadot/wasm-crypto": "^7.3.2",
"@polkadot/x-randomvalues": "^13.1.1",
"@types/cors": "^2.8.13",
"axios": "^1.6.0",
"bigfloat.js": "^3.0.1",
"body-parser": "^1.20.0",
"bs58": "^5.0.0",
"confmgr": "^1.0.8",
"cors": "^2.8.5",
"express": "5.0.0",
"matrix-js-sdk": "^26.1.0",
"pg": "^8.11.2",
"prom-client": "^14.2.0",
"reflect-metadata": "^0.1.13",
"sqlite3": "^5.1.7",
"typeorm": "0.3.21-dev.e7649d2"
},
"devDependencies": {
"@eng-automation/js-style": "^2.3.0",
"@types/body-parser": "^1.19.2",
"@types/express": "^4.17.13",
"@types/jest": "^29.4.0",
"@types/node": "^18.16",
"@types/supertest": "^2.0.12",
"eslint-plugin-security": "^1.5.0",
"jest": "^29.4.2",
"joi": "^17.6.4",
"lint-staged": "^12.3.8",
"nodemon": "^2.0.19",
"rxjs": "^7.8.1",
"simple-git-hooks": "^2.7.0",
"supertest": "^6.3.3",
"testcontainers": "^9.9.1",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.2",
"ts-patch": "^3.2.1",
"typescript": "^4.9.3",
"typescript-transform-paths": "^3.4.6"
}
}