-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
104 lines (104 loc) · 4.69 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
{
"name": "serverless-clusters",
"version": "3.0.0",
"description": "clusters - serverless micro-service for multi-node clustering via web-socket",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"port": 8121,
"scripts": {
"!build": "------ build /src to /dist ----",
"build": "npm run build-ts",
"build-ts": "ttsc",
"watch-ts": "ttsc -w",
"nodemon": "nodemon --config nodemon-main.json",
"!start": "------ run in local development ---------------------",
"*start": "nodemon --watch src --exec ts-node --compiler typescript -r tsconfig-paths/register src/index.ts",
"start": "npm run build && concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" -c \"cyan.bold,green.bold\" \"npm run watch-ts\" \"npm run nodemon\"",
"!server": "----- run server in local environment --------------",
"server": "sls offline start --profile \"$ENV\" --stage local",
"server-local": "npm run build && concurrently -k -p \"[{name}]\" -n \"TypeScript,Node\" -c \"cyan.bold,green.bold\" \"npm run watch-ts\" \"npm run server\"",
"server-pm2": "npm run build && pm2 startOrRestart pm2/api-server.json && pm2 save",
"server.lemon": "ENV=lemon npm run server-local",
"express.lemon": "ENV=lemon STAGE=local npm run start",
"!pack": "------- build serverless to check package ------------",
"pack": "npm run pack.lemon",
"pack.lemon": "npm run build && sls package --profile lemon --stage dev",
"pack.lemon.prod": "npm run build && sls package --profile lemon --stage prod",
"!deploy": "----- deploy to cloud service ----------------------",
"deploy": "npm run deploy.lemon",
"deploy.lemon": "npm run build && sls deploy --profile lemon --stage dev",
"deploy.lemon.prod": "npm run build && sls deploy --profile lemon --stage prod",
"!info": "------- print serverless information -----------------",
"info": "npm run info.lemon",
"info.lemon": "sls info --profile lemon --stage dev",
"info.lemon.prod": "sls info --profile lemon --stage prod",
"!logs": "------- print logs of serverless with tail -----------",
"logs": "npm run logs.lemon",
"logs.lemon": "sls logs --profile lemon --stage dev -t --startTime 5m -f lambda",
"logs.lemon.prod": "sls logs --profile lemon --stage prod -t --startTime 5m -f lambda",
"!remove": "----- remove serverless ----------------------------",
"remove": "npm run remove.lemon",
"remove.lemon": "sls remove --profile lemon --stage dev",
"remove.lemon.prod": "sls remove --profile lemon --stage prod",
"!test": "------- run self-test with jest ----------------------",
"test": "LS=1 jest --config=jest.config.json",
"test:dev": "LS=1 jest --config=jest.config.json --watchAll",
"test:watch": "LS=1 jest --config=jest.config.json --watchAll",
"test:watch.lemon": "ENV=lemon npm run test:watch",
"!release": "---- release with standard ------------------------",
"release": "standard-version"
},
"author": "Steve Jung ([email protected])",
"license": "MIT",
"dependencies": {
"lemon-core": "^2.2.15",
"source-map-support": "^0.5.19",
"ts-transformer-keys": "^0.3.5",
"ws": "^7.0.0"
},
"devDependencies": {
"@cruglobal/serverless-merge-config": "^1.1.0",
"@types/cors": "^2.8.7",
"@types/jest": "^24.9.1",
"@types/request": "^2.48.5",
"@types/supertest": "^2.0.10",
"@typescript-eslint/eslint-plugin": "^1.7.0",
"@typescript-eslint/parser": "^1.7.0",
"codecov": "^3.7.2",
"concurrently": "^5.3.0",
"eslint": "^5.16.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"jest": "^24.8.0",
"lint-staged": "^8.1.6",
"nodemon": "^1.19.0",
"prettier": "^1.18.2",
"serverless-aws-documentation": "^0.8.0",
"serverless-offline": "^3.33.0",
"serverless-pseudo-parameters": "^2.5.0",
"standard-version": "^6.0.1",
"superagent": "^5.3.1",
"supertest": "^4.0.2",
"ts-jest": "^24.3.0",
"ts-node": "8.1.0",
"tsconfig-paths": "3.8.0",
"tslint": "5.16.0",
"ttypescript": "^1.5.12",
"typedoc": "^0.15.8",
"typescript": "^3.9.7"
},
"private": false,
"engines": {
"node": ">=10.8.0"
},
"keywords": [
"lemoncloud",
"serverless",
"clusters",
"web-socket"
],
"repository": {
"type": "git",
"url": "[email protected]:lemoncloud-io/serverless-clusters.git"
}
}