File tree Expand file tree Collapse file tree 3 files changed +18
-6
lines changed
Expand file tree Collapse file tree 3 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 11# Changelog
2- ## [ 1.0.0] - 2017-06-26
2+ ## [ 1.0.0] - 2017-06-25
33- Initial release
Original file line number Diff line number Diff line change 11# aws-lambda-deploy
22## Usage
33
4- ```
4+ ``` bash
55gald [command] [option]
66```
77
88There are 3 commands available
9- ```
9+ ``` bash
1010gald init
1111gald test
1212gald deploy
@@ -24,12 +24,24 @@ After running `init` you should consider
2424adding ` lambda-secrets.json `
2525to your ` .gitignore ` .
2626
27+ The ` Handler ` property consists of
28+ the module name and the function name.
29+
30+ For example a file ` handler.js ` with:
31+ ``` javascript
32+ exports .myHandler = function () {};
33+ ```
34+ The resulting ` Handler ` property looks like this:
35+ ```
36+ "Handler": "handler.myHandler"
37+ ```
38+
2739#### test
2840
2941Execute all defined tests in ` lambda-test.json `
3042or a different JSON file.
3143
32- ```
44+ ``` bash
3345gald test [optional json file]
3446```
3547
@@ -47,7 +59,7 @@ with the necessary components
4759for the AWS Lambda function.
4860
4961For example, have a build script that looks like this:
50- ```
62+ ``` bash
5163zip -r -9 archive.zip handler.js
5264```
5365If your AWS Lambda function depends on other packages,
Original file line number Diff line number Diff line change 1212 ]
1313 },
1414 "file" : [
15- " src/gdw-aws-lambda .ts"
15+ " src/main .ts"
1616 ],
1717 "exclude" : [
1818 " node_modules"
You can’t perform that action at this time.
0 commit comments