-
Notifications
You must be signed in to change notification settings - Fork 89
/
package.json
95 lines (95 loc) · 3.65 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
{
"name": "@hoprnet/hopr-chat",
"version": "1.22.0-alpha.0",
"description": "Interactive chat PoC for HOPR Protocol",
"repository": "https://github.com/hoprnet/hoprnet.git",
"homepage": "https://hoprnet.org",
"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 && rimraf .alice/lib && copyfiles -u 1 'lib/**/*' '.alice/lib' && copyfiles .env .alice/",
"util:create:bob": "mkdirp .bob && rimraf .bob/lib && copyfiles -u 1 'lib/**/*' '.bob/lib' && 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:basodino": "ETHEREUM_PROVIDER=wss://xdai.poanetwork.dev/wss HOST_IPV4=0.0.0.0:9091 HOPR_BOOTSTRAP_ADDRESS=_dnsaddr.bootstrap.basodino.develop.hoprnet.org 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.22.0-alpha.0",
"@hoprnet/hopr-core-connector-interface": "1.22.0-alpha.0",
"@hoprnet/hopr-utils": "1.22.0-alpha.0",
"@zeit/ncc": "^0.22.3",
"bignumber.js": "^9.0.0",
"bn.js": "~5.1.2",
"bs58": "^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": "~3.0.1",
"peer-id": "~0.13",
"peer-info": "~0.17.5",
"readline": "~1.3.0",
"rlp": "~2.2.5",
"typescript": "^4.0.3"
},
"devDependencies": {
"@tsconfig/node12": "^1.0.7",
"@types/bn.js": "^4.11.6",
"@types/bs58": "^4.0.1",
"@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": "^9.0.0"
},
"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"
}
}