-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
59 lines (59 loc) · 3.44 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
{
"name": "xergioalex-iot-api",
"description": "An experimental api using serverless to control a LED ligth.",
"version": "1.0.0",
"files": [
"dist"
],
"main": "main.js",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/xergioalex/serverles-twitter-bot.git"
},
"dependencies": {
"aws-sdk": "2.344.0",
"minimal-request-promise": "^1.5.0",
"twit": "^2.2.11",
"source-map-support": "0.5.8",
"babel-runtime": "6.26.0",
"claudia-api-builder": "4"
},
"devDependencies": {
"claudia": "^5",
"claudia-local-api": "2.0.0",
"babel-loader": "7.1.5",
"babel-plugin-transform-flow-strip-types": "6.22.0",
"babel-plugin-transform-runtime": "6.23.0",
"babel-preset-env": "1.7.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-stage-2": "6.24.1",
"babel-register": "6.26.0",
"clean-webpack-plugin": "0.1.19",
"source-map-loader": "0.2.3",
"uglifyjs-webpack-plugin": "1.2.7",
"webpack": "4.16.5",
"webpack-cli": "3.1.0",
"webpack-node-externals": "1.7.2",
"onchange": "5.2.0",
"bunyan": "1.8.12"
},
"scripts": {
"build": "webpack --mode production --progress",
"build:watch": "webpack --mode production --progress --watch",
"create": "claudia create --name ${LAMBDA_NAME} --use-s3-bucket ${S3_CLAUDA_UPLOADS} --region us-east-1 --api-module dist/main --timeout 5 --policies config/dynamodb-policy.json --set-env-from-json config/environment.json",
"update": "claudia update --use-s3-bucket ${S3_CLAUDA_UPLOADS} --set-env-from-json config/environment.json",
"schedule": "claudia add-scheduled-event --event config/schedule.json --name ${LAMBDA_EVENT_NAME} --rate '5 minutes'",
"destroy": "claudia destroy",
"invoke": "claudia test-lambda",
"dynamodb:create": "aws dynamodb create-table --table-name ${DYNAMODB_TABLE_NAME} --attribute-definitions AttributeName=device,AttributeType=S --key-schema AttributeName=device,KeyType=HASH --provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 --region us-east-1 --query TableDescription.TableArn --output text",
"dynamodb:delete": "aws dynamodb delete-table --table-name ${DYNAMODB_TABLE_NAME}",
"dynamodb:local:create": "aws dynamodb create-table --table-name ${DYNAMODB_TABLE_NAME} --endpoint-url ${DYNAMODB_ENDPOINT_URL} --attribute-definitions AttributeName=device,AttributeType=S --key-schema AttributeName=device,KeyType=HASH --provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 --region us-east-1 --query TableDescription.TableArn --output text",
"dynamodb:local:create:test": "aws dynamodb create-table --table-name test --endpoint-url ${DYNAMODB_ENDPOINT_URL} --attribute-definitions AttributeName=device,AttributeType=S --key-schema AttributeName=device,KeyType=HASH --provisioned-throughput ReadCapacityUnits=1,WriteCapacityUnits=1 --region us-east-1 --query TableDescription.TableArn --output text",
"dynamodb:local:delete": "aws dynamodb delete-table --table-name ${DYNAMODB_TABLE_NAME} --endpoint-url ${DYNAMODB_ENDPOINT_URL}",
"dynamodb:local:delete:test": "aws dynamodb delete-table --table-name test --endpoint-url ${DYNAMODB_ENDPOINT_URL}",
"dynamodb:local:list": "aws dynamodb list-tables --endpoint-url ${DYNAMODB_ENDPOINT_URL}",
"local:api": "claudia-local-api --api-module dist/main --port=3000 | bunyan --output short",
"local:api:watch": "onchange -d 0 -v 'dist/main.js' -- docker restart -t=0 xergioalexiotapi_claudia_api_1"
}
}