-
Notifications
You must be signed in to change notification settings - Fork 89
/
package.json
112 lines (112 loc) · 3.78 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
{
"name": "@hoprnet/hopr-server",
"version": "1.22.0-alpha.0",
"description": "gRPC Server wrapper around HOPR Node",
"repository": "https://github.com/hoprnet/hoprnet.git",
"homepage": "https://hoprnet.org",
"license": "GPL-3.0-only",
"main": "dist/main.js",
"files": [
"dist",
"package.json",
"README.md",
"!*.spec.ts",
"!*.spec.d.ts",
"!*.spec.js",
"!*.spec.js.map"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"clean": "rimraf ./dist",
"clean:all": "yarn util:clean:all && yarn clean",
"prebuild": "yarn clean",
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"util:clean:all": "rimraf .alice .bob .charlie",
"util:create:alice": "mkdirp .alice && copyfiles -a dist/**/**/**/* .alice && copyfiles .env .alice/",
"util:create:bob": "mkdirp .bob && copyfiles -a dist/**/**/**/* .bob && copyfiles .env .bob/",
"util:create:charlie": "mkdirp .charlie && copyfiles -a dist/**/**/**/* .charlie && copyfiles .env .charlie/",
"start": "nest start",
"start:alice": "yarn util:create:alice && cd .alice && cross-env SERVER_HOST=0.0.0.0:50051 CORE_HOST=0.0.0.0:9091 node dist/main.js",
"start:bob": "yarn util:create:bob && cd .bob && cross-env SERVER_HOST=0.0.0.0:50052 CORE_HOST=0.0.0.0:9092 node dist/main.js",
"start:charlie": "yarn util:create:charlie && cd .charlie && cross-env SERVER_HOST=0.0.0.0:50053 CORE_HOST=0.0.0.0:9093 node dist/main.js",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "rimraf db && jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json --forceExit --runInBand"
},
"engines": {
"node": "12",
"yarn": "1"
},
"dependencies": {
"@grpc/proto-loader": "^0.5.4",
"@hoprnet/hopr-core": "1.22.0-alpha.0",
"@hoprnet/hopr-core-connector-interface": "1.22.0-alpha.0",
"@hoprnet/hopr-protos": "1.22.0-alpha.0",
"@hoprnet/hopr-utils": "1.22.0-alpha.0",
"@nestjs/common": "^7.0.0",
"@nestjs/config": "^0.5.0",
"@nestjs/core": "^7.0.0",
"@nestjs/microservices": "^7.3.1",
"class-validator": "^0.12.2",
"dotenv-parse-variables": "^1.0.1",
"grpc": "^1.24.3",
"multiaddr": "^7.5.0",
"parse-ip-port": "^1.0.0",
"peer-id": "^0.13.13",
"peer-info": "^0.17.5",
"read-pkg-up": "^7.0.1",
"reflect-metadata": "^0.1.13",
"rlp": "^2.2.6",
"rxjs": "^6.6.0"
},
"devDependencies": {
"@hoprnet/hopr-ethereum": "1.22.0-alpha.0",
"@hoprnet/hopr-testing": "1.22.0-alpha.0",
"@nestjs/cli": "^7.0.0",
"@nestjs/schematics": "^7.0.0",
"@nestjs/testing": "^7.0.0",
"@types/dotenv-parse-variables": "^0.2.0",
"@types/express": "^4.17.3",
"@types/jest": "26.0.3",
"@types/node": "~12",
"@typescript-eslint/eslint-plugin": "4.0.0",
"@typescript-eslint/parser": "3.10.1",
"copyfiles": "^2.3.0",
"cross-env": "^7.0.2",
"eslint": "7.11.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-import": "^2.20.1",
"jest": "26.0.1",
"mkdirp": "^1.0.4",
"prettier": "^2.0.5",
"rimraf": "^3.0.2",
"ts-jest": "26.1.0",
"ts-loader": "^8.0.4",
"ts-node": "^9.0.0",
"tsconfig-paths": "^3.9.0",
"typescript": "^4.0.3"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}