-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
executable file
·33 lines (33 loc) · 1.31 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
{
"name": "lambda-event-handler",
"version": "0.1.0",
"description": "",
"main": "dist/index.js",
"scripts": {
"build": "npm run build:init && npm run build:js && npm run build:install",
"build:init": "rm -rf dist && mkdir dist",
"build:js": "babel index.js --out-dir dist && babel src --out-dir dist/src",
"build:install": "cp package.json dist/ && cd dist && npm install --production",
"package": "npm run build && npm run package:pack",
"package:pack": "cd ./dist && zip -r ../artifact.zip * && cd ..",
"deploy": "npm run package && aws lambda update-function-code --function-name your-func-name --zip-file fileb://artifact.zip --region your-region",
"test": "mocha -r babel-register -r babel-polyfill --recursive tests/",
"mock": "ENV=local node -r babel-register -r babel-polyfill mock/run.js"
},
"dependencies": {
"babel-runtime": "^6.11.6"
},
"devDependencies": {
"babel-cli": "^6.16.0",
"babel-core": "^6.17.0",
"babel-plugin-transform-async-to-generator": "^6.16.0",
"babel-plugin-transform-class-properties": "^6.16.0",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-polyfill": "^6.9.1",
"babel-preset-es2015": "^6.16.0",
"babel-preset-stage-0": "^6.16.0",
"babel-register": "^6.9.0",
"chai": "*",
"mocha": "^5.2.0"
}
}