This repository has been archived by the owner on Dec 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
92 lines (92 loc) · 3.33 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
{
"name": "@hoprnet/hopr-chat",
"version": "1.17.14-basodino-develop",
"description": "Interactive chat PoC for HOPR Protocol",
"main": "lib/index.js",
"scripts": {
"build": "yarn clean:lib && tsc -p . --noEmit false",
"clean:lib": "rimraf ./lib",
"clean:build": "rimraf ./build",
"clean:hopr-chat": "rimraf ./hopr-chat",
"clean:zip": "rimraf *.zip",
"clean:all": "yarn clean:lib && yarn clean:hopr-chat && yarn util:clean:all && yarn clean:zip",
"compile": "yarn clean:hopr-chat && ncc build index.ts -o hopr-chat && copyfiles package.json .env.demo start-hopr-chat.bat start-hopr-chat.sh start-hopr-chat.command hopr-chat && yarn util:compile",
"test": "jest",
"util:clean:all": "rimraf .alice .bob",
"util:create:alice": "mkdirp .alice && copyfiles -a lib/**/**/* .alice && copyfiles .env .alice/",
"util:create:bob": "mkdirp .bob && copyfiles -a lib/**/**/* .bob && copyfiles .env .bob/",
"util:compile": "copyfiles node_modules/@hoprnet/hopr-core hopr-chat && move-file hopr-chat/.env.demo hopr-chat/.env",
"dev": "ts-node index.ts",
"start": "node lib/index.js",
"start:alice": "yarn util:create:alice && cd .alice && cross-env HOST_IPV4=0.0.0.0:9091 node lib/index.js -p alice 2>log.alice.txt",
"start:bob": "yarn util:create:bob && cd .bob && cross-env HOST_IPV4=0.0.0.0:9092 node lib/index.js -p bob 2>log.bob.txt",
"zip:windows": "yarn clean:zip && rimraf ./hopr-chat/start-hopr-chat.command ./hopr-chat/start-hopr-chat.sh && bestzip hopr-chat-nodebin-windows.zip hopr-chat",
"zip:macos": "yarn clean:zip && rimraf ./hopr-chat/start-hopr-chat.bat ./hopr-chat/start-hopr-chat.sh && bestzip hopr-chat-nodebin-macos.zip hopr-chat",
"zip:linux": "yarn clean:zip && rimraf ./hopr-chat/start-hopr-chat.bat ./hopr-chat/start-hopr-chat.command && bestzip hopr-chat-nodebin-linux.zip hopr-chat"
},
"engines": {
"node": "12",
"yarn": "1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@hoprnet/hopr-core": "^1.17.14",
"@hoprnet/hopr-core-connector-interface": "^1.17.14",
"@hoprnet/hopr-utils": "^1.17.14",
"@zeit/ncc": "^0.22.3",
"bignumber.js": "^9.0.1",
"bn.js": "~5.1.2",
"bufferutil": "^4.0.1",
"chalk": "~4.1.0",
"clear": "~0.1.0",
"dotenv": "~8.2.0",
"dotenv-expand": "~5.1.0",
"getopts": "^2.2.5",
"multihashes": "~0.4.19",
"peer-info": "~0.17.5",
"readline": "~1.3.0",
"rlp": "~2.2.5",
"typescript": "^3.9.7",
"utf-8-validate": "^5.0.2"
},
"devDependencies": {
"@tsconfig/node12": "^1.0.7",
"@types/bs58": "^4.0.1",
"@types/bn.js": "^4.11.6",
"@types/clear": "^0.1.0",
"@types/jest": "^26.0.10",
"@types/node": ">=4.2.0 < 13",
"bestzip": "^2.1.6",
"copyfiles": "^2.3.0",
"cross-env": "^7.0.2",
"jest": "^26.4.0",
"mkdirp": "^1.0.4",
"move-file-cli": "^2.0.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.2.0",
"ts-node": "^8.10.2"
},
"jest": {
"verbose": true,
"moduleFileExtensions": [
"ts",
"js",
"json"
],
"testPathIgnorePatterns": [
"<rootDir>/lib",
"node_modules"
],
"testRegex": ".spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"publishConfig": {
"access": "public"
}
}