Commit Graph

33 Commits

Author SHA1 Message Date
Frank Schmid 1f9ef6d5d2 Merge pull request #413 from nidin/patch-1
Added support for async webpack config object
2018-07-07 15:38:07 +02:00
Frank Schmid 77121fc7a7 Use sinon and chai in unit tests 2018-07-07 15:23:13 +02:00
Jon Bevan 89936c845b Include directory when reporting missing handler
This helped me debug a problem with using the context option
in my webpack configuration.
2018-06-28 19:55:38 +01:00
Nidin Vinayakan 6c7427b78c Reviewer's recommended changes.
Generic thenable check added to identify if the webpack config
is a Promise or not.
new Promise anti-pattern avoided.
README updated.
New functionality added to highlights, recent changes and release note.
Added additional test to check correctness when passing
wrong then object in config.
2018-06-21 21:49:10 +02:00
Nidin Vinayakan 83f761b7c2 Indentation issue fixed 2018-06-20 12:33:09 +02:00
Nidin Vinayakan 35ad57dc60 Promise returned properly
Proper Promise return statements added.
2018-06-20 12:12:43 +02:00
Nidin Vinayakan 2becf94c05 this.webpackConfig check added
If condition extended to check whether this.webpackConfig is falsy.
2018-06-20 11:57:18 +02:00
Nidin Vinayakan 2dc2f427b7 Inline comments added 2018-06-20 11:44:12 +02:00
Nidin Vinayakan 32fbab4f8b Added support for async webpack config object
Webpack 2+ support async configuration object by exporting a promise as configuration object.
This PR added support for async configuration object.
Closes #412
2018-06-20 11:06:53 +02:00
Frank Schmid 340a40f1b6 Add --no-build switch for invoke local to use already compiled output 2018-03-13 17:37:38 +01:00
Frank Schmid e195cb0b44 Unify configuration. 2018-03-07 12:12:08 +01:00
Frank Schmid a1f708c186 Support serverless run
Small README change

Raise coverage again

Added unit tests

Added serverless run to README

Added watch unit tests with handler function.

Support --watch for run command

Package external modules for run

Hook run:run, set service packaging and change to compiled directory
2017-11-21 12:57:24 +01:00
Frank Schmid 1c471fb792 Set target to 'node' if not specified by the configuration. 2017-11-18 13:00:29 +01:00
Wisen Tanasa f4dd8ada59 Return promise instead of throwing error. 2017-11-12 08:02:47 +00:00
Wisen Tanasa f244847c38 Extract duplicated handlerFile extraction logic. 2017-11-11 11:00:43 +00:00
Wisen Tanasa bbb7b359d8 Throw error if webpack entry is customised 2017-11-10 07:41:46 +00:00
Wisen Tanasa 113e99cf80 Default webpack config entry to slsw.lib.entries when package.individually is true 2017-11-09 07:30:23 +00:00
Frank Schmid ff5ef0c9f5 Log errors in webpack config explicitly. (#234)
* Log errors in webpack config explicitly.

* Added unit test
2017-09-21 21:15:57 +02:00
Frank Schmid 3e69a8394b Set offline location parameter automatically. 2017-08-22 13:40:38 +02:00
Frank Schmid 58fba2127c Support multiple exports from the same file as function handlers 2017-08-22 11:58:30 +02:00
Frank Schmid 70bb575009 Merge branch 'v2.x'
# Conflicts:
#	README.md
#	lib/validate.js
#	package-lock.json
#	package.json
2017-08-21 17:07:21 +02:00
Frank Schmid 5916a9095a Ignore handlers that do not follow a path pattern 2017-08-21 12:17:05 +02:00
Frank Schmid a1b5a243bc Fixed existing unit tests 2017-08-01 22:00:55 +02:00
Frank Schmid 85b184b932 Fixed service packaging 2017-08-01 22:00:54 +02:00
Frank Schmid c04b249fa1 Support individual packaging with multi-compile 2017-08-01 22:00:54 +02:00