-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
86 lines (86 loc) · 3.33 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
{
"name": "streetlives-api",
"version": "1.5.6",
"description": "The Streetlives backend providing the API",
"main": "dist",
"config": {
"s3BucketName": "streetlives",
"region": "us-east-1",
"functionName": "StreetlivesApiServerlessS-StreetlivesApiTestFuncti-O15R8ZABRT1P",
"prodFunctionName": "StreetlivesApiProdFunction"
},
"scripts": {
"dev": "NODE_ENV=development nodemon -w src --exec \"babel-node src\"",
"build": "babel src -s -D -d dist",
"start": "NODE_ENV=production node dist",
"prestart": "npm run build",
"lint": "eslint .",
"test": "NODE_ENV=test jest --runInBand --coverage",
"test:watch": "NODE_ENV=test jest --watch --runInBand",
"build-zip": "npm run build && (cd dist; zip -r ../`date +%Y-%m-%d`-streetlives-api-`git rev-parse --short HEAD`.zip *)",
"config": "node ./scripts/configure.js",
"deconfig": "node ./scripts/deconfigure.js",
"local": "node scripts/local",
"invoke-lambda": "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": "aws s3 mb s3://$npm_package_config_s3BucketName --region $npm_package_config_region",
"delete-bucket": "aws s3 rb s3://$npm_package_config_s3BucketName --region $npm_package_config_region",
"package": "cp -r node_modules dist/; cd dist && zip -r ../dist.zip *",
"clean": "rm -rf dist/ dist.zip",
"deploy:dev": "aws lambda update-function-code --function-name $npm_package_config_functionName --zip-file fileb://./dist.zip --publish",
"deploy:prod": "aws lambda update-function-code --function-name $npm_package_config_prodFunctionName --zip-file fileb://./dist.zip --publish",
"package-deploy:dev": "npm run clean && npm run build && npm run package && npm run deploy:dev",
"package-deploy:prod": "npm run clean && npm run build && npm run package && npm run deploy:prod",
"setup": "npm install && (aws s3api get-bucket-location --bucket $npm_package_config_s3BucketName --region $npm_package_config_region || npm run create-bucket) && npm run package-deploy",
"sequelize:migration:generate": "sequelize-cli migration:generate --name",
"sequelize:db:migrate": "sequelize-cli db:migrate"
},
"author": "",
"license": "MIT",
"engines": {
"node": "8.2.0",
"npm": "5.3.0"
},
"keywords": [
"streetlives"
],
"dependencies": {
"aws-serverless-express": "^3.1.3",
"axios": "^0.21.2",
"body-parser": "^1.18.2",
"cors": "^2.8.4",
"express": "^4.16.2",
"joi": "^13.1.2",
"minimist": "^1.2.6",
"morgan": "^1.9.1",
"pg": "^8.11.3",
"pg-hstore": "^2.3.2",
"sequelize": "^6.37.1"
},
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.4.5",
"@babel/node": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@babel/register": "^7.8.6",
"eslint": "^4.18.2",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-plugin-import": "^2.8.0",
"jest": "^24.8.0",
"nodemon": "^1.18.7",
"pre-commit": "^1.2.2",
"qs": "^6.9.4",
"sequelize-cli": "^6.6.2",
"supertest": "^3.0.0",
"trace": "^3.1.1",
"uuid": "^3.2.1"
},
"pre-commit": [
"lint",
"test"
],
"jest": {
"setupFilesAfterEnv": [
"<rootDir>/test/setup.js"
]
}
}