Commit Graph

81 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 356bddaeb7 Doc fixes. Use info message in verbose mode. 2018-05-16 10:09:22 +02:00
Frank Schmid a9e959b237 Added missing file 2018-05-03 13:09:21 +02:00
Frank Schmid ddf1435304 Ignore aws-sdk to reduce risk of breaking builds. Emit a warning instead. 2018-05-03 12:59:38 +02:00
Frank Schmid 58f0f57efa Added error if needed runtime dependency is a devDependency 2018-05-02 12:37:04 +02:00
Frank Schmid 57937363cc Added unit tests for package section copy 2018-04-30 15:39:02 +02:00
Frank Schmid f9896e6d3f Fixed unit tests 2018-04-30 11:27:18 +02:00
Frank Schmid b379de95f8 Utils unit tests
Enhance error message

Removed deprecated option from README

Convert all outstanding changes (yarn and package)

Adjusted NPM unit tests

Use spawn in any npm commands

Use spawn instead of exec

Fix unit test description

Do not swallow errors in case npm ls fails without a proper stdout
2018-04-25 18:05:37 +02:00
Frank Schmid b43a75734d Unit tests for --no-build 2018-03-13 19:17:46 +01:00
Frank Schmid 3fcf387e33 Unit tests 2018-03-12 11:41:17 +01:00
Frank Schmid bcd8dd65e6 Yarn support
Unit tests

Added unit tests for copy modules packager flag

npm must copy modules

Fixed unit tests

Yarn does not need to copy modules to be fast

Install/prune unit tests. Fixed typo.

Copy lock file only if it can be read. AAdjust unit tests.

Copy lock file into function directories

Only stringify JSON or YML lock files

Fixed unit tests

Add basic Yarn functionality
2018-03-09 11:25:58 +01:00
Frank Schmid d7c5f8a6e3 Drop unnecessary prefix for includeModules setting 2018-03-07 19:17:38 +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 891a6b3883 Merge remote-tracking branch 'remotes/upstream/master' into v5 2018-03-02 14:16:58 +01:00
Frank Schmid fee494763f Abstract packager into own interface
Extended pack external unit tests

Added unit tests for npm packager

Adapted unit tests

Exclude test.js files from nyc statistics

Added unit test for packager factory

Extract optional lock file adaption

Fixed ESLint

ESLint fixes

Moved npm to a separate packager class.
2018-03-01 15:30:33 +01:00
Frank Schmid e6e544e147 Merge pull request #328 from janicduplessis/webpack-modules
Use chunk.forEachModules instead of deprecated chunk.modules
2018-03-01 10:33:58 +01:00
Frank Schmid d38a3854a3 Merge pull request #313 from vkkis93/master
add hook *before:step-functions-offline:start*
2018-02-27 12:50:33 +01:00
Frank Schmid 20f84a12ed Added unit tests for prepareStepOfflineInvoke 2018-02-27 12:18:22 +01:00
Janic Duplessis 0c465e2703 Use chunk.forEachModules instead of deprecated chunk.modules 2018-02-26 04:50:51 -05:00
Frank Schmid 352484981b Test new behavior in wpwatch unit tests 2018-02-07 14:57:32 +01:00