forked from lemoncloud-io/lemon-hello-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
107 lines (107 loc) · 4.6 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
{
"name": "eureka-hello-api",
"version": "0.24.1127",
"description": "Simplified Boilerplate of Serverless API",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"port": 8000,
"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 (note! ts-node seems not watch '.js' file) ----",
"*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 serverless local (for dev) -----",
"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.local": "ENV=none npm run server-local",
"!express": "---- run express server in local -----",
"express": "ENV=none STAGE=local npm run start",
"!deploy": "----- deploy to AWS by serverless -----",
"deploy": "npm run build && sls deploy --param='profile=none' --stage dev",
"deploy.prod": "npm run build && sls deploy --param='profile=none' --stage prod",
"!info": "------- print sls infor by profile -----",
"info": "sls info --param='profile=none' --stage dev",
"info.prod": "sls info --param='profile=none' --stage prod",
"!pack": "------- build gulp and prepare to release -----",
"pack": "npm run build && sls package --param='profile=none' --stage dev",
"pack.prod": "npm run build && sls package --param='profile=none' --stage prod",
"!logs": "------- print logs of serverless by profile -----",
"logs": "sls logs --param='profile=none' --stage dev -t --startTime 5m -f lambda",
"logs.prod": "sls logs --param='profile=none' --stage prod -t --startTime 5m -f lambda",
"!remove": "----- sls remove by profile -----",
"remove": "sls remove --param='profile=none' --stage dev",
"remove.prod": "sls remove --param='profile=none' --stage prod",
"!test": "------- run self-test with jest -----",
"test": "LS=1 jest --config=jest.config.json",
"test:watch": "ENV=none LS=1 jest --config=jest.config.json --watchAll",
"test.local": "ENV=none STAGE=local npm test",
"!plato": "----- analysis code complexity -----",
"plato": "plato -r -d complexity dist"
},
"dependencies": {
"lemon-core": "^3.2.10"
},
"devDependencies": {
"@cruglobal/serverless-merge-config": "^1.1.0",
"@lemoncloud/lemon-accounts-api": "^2.15.2",
"@types/cors": "^2.8.7",
"@types/jest": "^27.5.0",
"@types/request": "^2.48.5",
"@types/supertest": "^2.0.10",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^5.22.0",
"@typescript-eslint/parser": "^5.22.0",
"codecov": "^3.7.2",
"concurrently": "^5.3.0",
"eslint": "^8.14.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.5.1",
"lint-staged": "^13.1.0",
"nodemon": "^2.0.20",
"prettier": "^2.6.2",
"serverless": "^3.16.0",
"serverless-aws-documentation": "^0.8.0",
"serverless-offline": "^12.0.4",
"serverless-prune-plugin": "^2.0.1",
"superagent": "^5.3.1",
"supertest": "^4.0.2",
"ts-jest": "^27.1.4",
"ts-node": "8.1.0",
"tsconfig-paths": "^4.1.2",
"ttypescript": "^1.5.15",
"typedoc": "^0.22.15",
"typescript": "^4.6.4"
},
"private": false,
"author": "Steve Jung <[email protected]> (https://eureka.codes)",
"license": "MIT",
"files": [
"handler.js",
"dist/**/*"
],
"engines": {
"node": ">=18.19.1"
},
"keywords": [
"eureka.codes",
"lemon-core",
"serverless"
],
"bugs": {
"url": "https://github.com/lemoncloud-io/eureka-hello-api/issues",
"email": "[email protected]"
},
"contributors": [
"Louis <[email protected]>"
],
"homepage": "https://github.com/lemoncloud-io/eureka-hello-api#readme",
"repository": {
"type": "git",
"url": "[email protected]:lemoncloud-io/eureka-hello-api.git"
}
}