29 Commits

Author SHA1 Message Date
Frank Schmid b0920c3513 Updated dependencies 2018-07-07 16:12:24 +02:00
Frank Schmid 77121fc7a7 Use sinon and chai in unit tests 2018-07-07 15:23:13 +02: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 b6e0c2a1ac Error handling test added 2018-06-20 13:14:39 +02:00
Nidin Vinayakan c20edbe835 Added test for async webpack config support 2018-06-20 12:55:46 +02:00
Frank Schmid b43a75734d Unit tests for --no-build 2018-03-13 19:17:46 +01:00
Frank Schmid 8f355dae72 Added unit tests. Count all files for coverage. 2018-03-07 12:12:48 +01:00
Frank Schmid fb396fa50f Small code beautify
Added webpack state variable paragraph to readme

Added unit test for isLocal default value

Add new webpack lib object that contains states relevant for the config.
2018-03-06 11:30:07 +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
Frank Schmid 9ec14bf441 Use new fs-extra mock in validate tests 2017-11-16 13:17:19 +01:00
Frank Schmid 8e19b9c21a Fixed unit test compatibility for Windows introduced with #268 2017-11-15 02:03:37 +01:00
Wisen Tanasa f4dd8ada59 Return promise instead of throwing error. 2017-11-12 08:02:47 +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
Wisen Tanasa e68c1b1519 Use chai #to.have.lengthOf() 2017-11-05 15:33:09 +00:00
Wisen Tanasa 96d5ceceee Add missing unit tests which covers package individually scenario. 2017-11-05 14:38:31 +00:00
Frank Schmid 251a30e4c4 Upgrade dependencies and tools. (#238)
* Updated dependencies

* Sinon 3 disallows stubbing non existent properties
2017-09-23 12:31:10 +02: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 5402927834 Set artifact file path for the Google provider. 2017-08-22 13:30:24 +02:00
Frank Schmid 6575b36a28 Use path where needed to make unit tests on Windows pass. 2017-08-10 14:05:41 +02:00
Frank Schmid a1b5a243bc Fixed existing unit tests 2017-08-01 22:00:55 +02:00
Frank Schmid 1a116f4044 Fixed unit tests 2017-08-01 21:31:34 +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