This repository has been archived by the owner on Nov 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
55 lines (55 loc) · 2.34 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": "aws-serverless-example",
"authors": [
{
"name": "Maik Schmidt",
"email": "maik.schmidt.hl@gmail.com"
}
],
"config": {
"AWS_REGION": "eu-west-1",
"AWS_CF_TEMPLATE_S3_BUCKET": "PUT S3 BUCKET NAME HERE",
"AWS_CF_STACK_NAME": "AWS-SERVERLESS-EXAMPLE"
},
"scripts": {
"eslint": "./node_modules/.bin/eslint src/**",
"flow": "./node_modules/.bin/flow",
"start": "DEVELOPMENT_MODE=true nodemon --verbose --exec \"babel-node ./src/api.js\"",
"build": "./node_modules/.bin/babel src -d dist/src",
"postbuild": "aws cloudformation package --s3-bucket $npm_package_config_AWS_CF_TEMPLATE_S3_BUCKET --s3-prefix aws-serverless-example --template-file ./infrastructure.yml --output-template-file ./infrastructure-packaged.yml",
"aws:install": "npm run build && aws cloudformation create-stack --stack-name $npm_package_config_AWS_CF_STACK_NAME --template-body file:///$PWD/infrastructure-packaged.yml --capabilities CAPABILITY_IAM --region $npm_package_config_AWS_REGION",
"aws:update": "npm run build && aws cloudformation update-stack --stack-name $npm_package_config_AWS_CF_STACK_NAME --template-body file:///$PWD/infrastructure-packaged.yml --capabilities CAPABILITY_IAM --region $npm_package_config_AWS_REGION",
"aws:uninstall": "aws cloudformation delete-stack --stack-name $npm_package_config_AWS_CF_STACK_NAME --region $npm_package_config_AWS_REGION"
},
"husky": {
"hooks": {
"pre-push": "npm run eslint && npm run flow"
}
},
"dependencies": {
"aws-sdk": "2.286.2",
"aws-serverless-express": "3.2.0",
"body-parser": "1.18.3",
"cors": "2.8.4",
"dotenv": "6.0.0",
"express": "4.16.3",
"image-type": "3.0.0",
"imagemagick": "0.1.3",
"moment": "2.22.2",
"morgan": "1.9.0",
"uuid": "3.3.2"
},
"devDependencies": {
"babel-cli": "6.26.0",
"babel-eslint": "8.2.3",
"babel-preset-env": "1.7.0",
"babel-preset-flow": "6.23.0",
"babel-preset-stage-0": "6.24.1",
"eslint": "4.19.1",
"eslint-config-airbnb-base": "12.1.0",
"eslint-plugin-import": "2.12.0",
"flow-bin": "0.74.0",
"husky": "1.0.0-rc.9",
"nodemon": "1.17.5"
}
}