-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
78 lines (78 loc) · 3.09 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
{
"name": "@acore/noderouter",
"_moduleAliases": {
"@acore/noderouter": "../"
},
"_moduleAliasIgnoreWarning": true,
"version": "0.11.6",
"description": "",
"main": "src/router/index.js",
"bin": {
"noderouter": "src/router/index.js",
"noderouter-client": "src/client/run.js"
},
"scripts": {
"check": "npx install-changed && npm run test && npx tsc && npm run lint -- --fix",
"lint": "npx eslint --cache .",
"test": "jest",
"doc": "typedoc -out docs/jsdoc src",
"start": "npm run start:router",
"start:router": "node src/router",
"start:client": "node src/client/run",
"nodemon:start:router": "npx nodemon src/router",
"nodemon:start:client": "npx nodemon src/client/run",
"pm2:start:router": "npx pm2 start --name noderouter --namespace noderouter src/router",
"pm2:stop:router": "npx pm2 stop noderouter",
"pm2:remove:router": "npx pm2 delete noderouter",
"pm2:restart:router": "npx pm2 restart noderouter",
"pm2:start:client": "npx pm2 start --name noderouter-client --namespace noderouter src/client/run",
"dockercompose:start:prod": "docker-compose -f docker-compose.yml -f docker-compose.prod.yml up",
"dockercompose:start": "docker-compose up",
"dockercompose:start:router": "docker-compose up node-router whoami portainer",
"dockercompose:stop": "docker-compose stop",
"dockercompose:remove": "docker-compose down -v --remove-orphans --rmi local",
"docker:start:router": "docker run -p 80:80 -p 443:443 -p 60001:60001 --rm --name noderouter --pid=host acore/noderouter",
"docker:start:client": "docker run --rm --name noderouter-client --pid=host acore/noderouter-client",
"docker:build:router": "docker build -t acore/noderouter -f NR.Dockerfile . && docker tag acore/noderouter acore/noderouter:latest",
"docker:build:client": "docker build -t acore/noderouter-client -f NRClient.Dockerfile . && docker tag acore/noderouter-client acore/noderouter-client:latest",
"docker:push": "npm run docker:push:client && npm run docker:push:router",
"docker:push:router": "npm run docker:build:router && docker push acore/noderouter:latest",
"docker:push:client": "npm run docker:build:client && docker push acore/noderouter-client:latest",
"prepare": "npx link-module-alias"
},
"author": "Yehonal",
"license": "AGPL3",
"devDependencies": {
"@types/jest": "^25.1.3",
"@types/node": "^12.12.28",
"dotenv": "^8.2.0",
"eslint": "^6.8.0",
"eslint-config-google": "^0.14.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-jest": "^23.8.0",
"eslint-plugin-jsdoc": "^21.0.0",
"eslint-plugin-json": "^2.1.0",
"eslint-plugin-tsdoc": "^0.2.3",
"husky": "^4.2.3",
"install-changed": "^1.1.0",
"jest": "^25.1.0",
"jest-cli": "^25.1.0",
"link-module-alias": "^1.2.0",
"lint-staged": "^10.0.8",
"pm2": "^4.2.3",
"prettier-eslint": "^9.0.1",
"typedoc": "^0.16.11",
"typescript": "^3.8.2"
},
"lint-staged": {
"**/*.(js)": [
"npm run check",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}