48 Commits

Author SHA1 Message Date
Frank Schmid 2308426161 Fixes #202 Revert accidental breaking change in 2.2.1 2017-08-23 10:23:33 +02:00
Frank Schmid 5916a9095a Ignore handlers that do not follow a path pattern 2017-08-21 12:17:05 +02:00
Frank Schmid 824b7595ec Fixed issue with default output options. 2017-07-28 21:13:01 +02:00
Gady e7531dcebd Do not add .js extension to entries values (#167)
* Do not add .js extension to entries values

* Find entries extension from filename

* Better filesearch performance

* Add warning for multiple files found

* Do not match directories

* Added unit tests. Throw error if handler is not found.

* Fixed examples

* Use preference sorting to find the most probable handler for multiple hits
2017-07-28 11:40:08 +02:00
Gady ceaf43ca74 Expose service and options for dynamicity (#168)
* Expose service and options for dynamicity

* Expose the whole serverless object

* Added unit tests for new exports.

* Added some notes to the README
2017-07-27 20:38:04 +02:00
Gady f27d1c2aae Fixed package individually:true (#163)
* Fixed package individually:true

* Fixed issue with SLS <1.18. Updated unit tests.

* Removed debug logging
2017-07-27 11:23:11 +02:00
Francisco GuimarĂ£es 22a460d8b1 Integration with deploy package function (#130)
* Deploy  package function

* Listen pipe and reject pipe errors

* using once instead of on

* Fix babel example

* - Adding babel-multiple-statically-entries example
- Renaming multiple-entries-example to multiple-statically-entries

* Exposing entries to lib

*  Adding babel-dynamically-entries examples

* - Updating examples dependencies
- Adding yarn to examples
- Fix typescript example

*  Adding tests

* Removed yarn lock file. yarn should use package-lock.json

* Allow handlers in arbitrary paths. Use lodash and SLS functions.

* Adapted unit tests

* Mention new entry resolution in README

* Bundle names now contain the js ending. Fixed output in examples.
2017-07-26 22:42:15 +02:00
Aaron Jensen 0c19b85c67 Print webpack compile results 2017-05-25 10:23:19 -07:00
Nicola Peduzzi 97f28bb75c Merge pull request #72 from daikikohara/fix-pathParameters-for-lambda-proxy
Fix naming problem for lambda-proxy
2017-01-09 16:23:15 +00:00
Nicola Peduzzi f8d93b361b Add default status code for lambra integration http event 2017-01-09 16:21:43 +00:00
daikikohara ba864c08bd Fix naming problem for lambda-proxy
path parameter for lambda-proxy is passed as event.pathParameters
instead of event.path.
2016-12-23 17:19:21 -08:00
Nicola Peduzzi 8b4b082767 Removed debug log 2016-12-23 17:48:15 +01:00
Nicola Peduzzi 2650649c6f Merge pull request #57 from stevenyap/api-gateway-lambda-proxy
Catering to Lambda proxy enabled API request/response
2016-12-23 17:26:42 +01:00
Nicola Peduzzi 4c6b344596 Merge pull request #65 from petemill/run-envvars
Support environment variables on 'run'
2016-12-23 17:26:01 +01:00
Pete Miller 0541c40363 set process.env before requiring function handler 2016-12-01 00:37:30 -08:00
Pete Miller 754482e7a7 support environment variables on 'run' 2016-12-01 00:27:39 -08:00
Steven Yap 66662cef9a Server to cater to Lambda Proxy response
If lambda proxy is enabled (which is by default in Serverless),
the response returned in the lambda callback must be of the form:

```json
{
  statusCode: 200,
  body: { /** data **/ }
}
```

The current server sends the entire response without separating
the statusCode and body which is what this commit does.

Ideally, we should detect if the lambda is using lambda proxy or not
but I cannot find the flag to detect this setting.
2016-11-29 11:13:58 +08:00
Steven Yap d0df9d2f88 Rename request query as queryStringParameter in API event
AWS API Gateway passes GET query as event.queryStringParameter
instead of event.query. This commit fixes the naming issue.
2016-11-25 16:02:07 +08:00
rahul 7032e12f38 Add new webpack watch function, and add webpack-offline-start hook 2016-11-17 14:41:13 -08:00
Gert Jansen van Rensburg 64e2391fa1 fix for deploying individual packages. 2016-10-18 20:15:04 +10:00
Nicola Peduzzi 7a34fd2d95 Fix broken test 2016-10-13 16:16:41 +02:00
Nicola Peduzzi de7c6a1b8a Accept entry points with file path to generate custom output config 2016-10-06 23:40:51 +02:00
Nicola Peduzzi 08ea3caea5 Parse as JSON only requests with proper content-type #34 2016-09-28 17:38:46 +02:00
demirhanaydin 464d34e93b [fix] EEXIST: file already exists .serverless 2016-09-24 01:55:20 +03:00
Nicola Peduzzi 25f443caa5 Merge branch 'master' of https://github.com/cyyuen/serverless-webpack into cyyuen-master 2016-09-20 10:37:52 +02:00