-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
55 lines (55 loc) · 2.08 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
{
"name": "serverless-app-boilerplate",
"version": "1.0.0",
"description": "Template for serverless-app-boilerplate",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/balmbees/lambda-microservice-template.git"
},
"scripts": {
"prebuild": "check-engine",
"build:tsc": "rm -rf dst && tsc",
"build": "npm run build:tsc",
"postbuild": "cd src && find . -name '*.json' -type f -exec cp {} ../dst/{} \\; && cd ..",
"prepack": "rm -f dst.zip",
"pack": "cp package.json package-lock.json dst/ && cd dst && npm ci --production && npm ls && find . -name \"*.d.ts\" | xargs rm && find . -name \"*.js.map\" | xargs rm && rm -Rf ./node_modules/@types && zip -rqy ../dst.zip . && cd ..",
"postpack": "node -e \"require('fs').statSync('./dst.zip').size > 1024 * 1024 * 50 && [console.log('artifact has to be smaller than 50MB'), process.exit(1)]\"",
"pretest": "npm run build:tsc -- -p ./tsconfig-test.json",
"test": "mocha --exit -t 20000 dst/**/__test__/**/*.js",
"test:ci": "npm run test -- --forbid-only",
"lint": "tslint -c tslint.json 'src/**/*.ts'",
"run-local:api": "npm run build && vingle-corgi run-local \"./dst/api/index.js\"",
"deploy": "npm run build && npm run pack && serverless deploy",
"deploy:stage": "npm run deploy -- -s stage",
"deploy:prod": "npm run deploy -- -s prod",
"info:stage": "sls info -s stage",
"info:prod": "sls info -s prod"
},
"engines": {
"node": "^12.14.0",
"npm": "^6.10.0"
},
"author": "Kurt Lee",
"license": "ISC",
"devDependencies": {
"@types/chai": "4.2.3",
"@types/mocha": "5.2.7",
"@types/node": "8.10.54",
"@types/sinon": "^7.5.0",
"@vingle/tslint-preset": "1.0.0",
"chai": "4.2.0",
"check-engine": "1.8.1",
"mocha": "^7.1.2",
"serverless": "^1.68.0",
"serverless-prune-plugin": "1.4.1",
"sinon": "^7.5.0",
"tslint": "5.20.0",
"typescript": "^4.0.3"
},
"dependencies": {
"@serverless-seoul/corgi": "^4.0.0",
"@serverless-seoul/dynamorm": "^2.11.0",
"@serverless-seoul/typebox": "^1.0.4"
}
}