forked from CodeGenieApp/serverless-express
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
42 lines (42 loc) · 2.26 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
{
"name": "@vendia/serverless-express-example",
"version": "2.1.1",
"description": "Example application for running a Node Express app on AWS Lambda using Amazon API Gateway.",
"main": "lambda.js",
"config": {
"s3BucketName": "sls-xpress-edge1",
"region": "us-east-1",
"cloudFormationStackName": "ServerlessExpressStack",
"functionName": "",
"domain": ""
},
"scripts": {
"start": "node app.local.js",
"local": "node scripts/local",
"invoke-lambda": "cross-var aws lambda invoke --function-name $npm_package_config_functionName --region $npm_package_config_region --payload file://api-gateway-event.json lambda-invoke-response.json && cat lambda-invoke-response.json",
"create-bucket": "cross-var aws s3 mb s3://$npm_package_config_s3BucketName --region $npm_package_config_region",
"delete-bucket": "cross-var aws s3 rb s3://$npm_package_config_s3BucketName --region $npm_package_config_region",
"package": "cross-var aws cloudformation package --template ./sam-template.yaml --s3-bucket $npm_package_config_s3BucketName --output-template sam-template.packaged.yaml --region $npm_package_config_region",
"deploy": "cross-var aws cloudformation deploy --template-file sam-template.packaged.yaml --stack-name $npm_package_config_cloudFormationStackName --capabilities CAPABILITY_IAM --region $npm_package_config_region --parameter-overrides DomainName=$npm_package_config_domain",
"package-deploy": "npm run build && npm run package && npm run deploy",
"delete-stack": "cross-var aws cloudformation delete-stack --stack-name $npm_package_config_cloudFormationStackName --region $npm_package_config_region",
"setup": "npm install && (cross-var aws s3api get-bucket-location --bucket $npm_package_config_s3BucketName --region $npm_package_config_region || npm run create-bucket) && npm run package-deploy",
"build": "webpack-cli"
},
"license": "Apache-2.0",
"dependencies": {
"@vendia/serverless-express": "^4.3.0",
"body-parser": "^1.17.1",
"compression": "^1.6.2",
"cors": "^2.8.3",
"ejs": "^3.1.6",
"express": "^4.15.2"
},
"devDependencies": {
"copy-webpack-plugin": "^7.0.0",
"cross-var": "^1.1.0",
"source-map-support": "^0.5.19",
"webpack": "^5.21.2",
"webpack-cli": "^4.5.0"
}
}