42 Commits

Author SHA1 Message Date
Frank Schmid 356bddaeb7 Doc fixes. Use info message in verbose mode. 2018-05-16 10:09:22 +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 f9896e6d3f Fixed unit tests 2018-04-30 11:27:18 +02:00
Frank Schmid cc3babaa75 Allow packagers to import sections from original package.json 2018-04-30 11:11:06 +02:00
Frank Schmid f2547b628e Support direct Yarn file references 2018-04-27 13:51:33 +02:00
Frank Schmid c4a1a69850 Rebase Yarn local file references correctly 2018-04-27 13:44:49 +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 dc98de4b14 Fixed ESLint after eslint plugin update 2018-03-21 10:45:04 +01:00
Frank Schmid d8a5f8da41 Allow to configure package scripts 2018-03-12 11:41:07 +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 e195cb0b44 Unify configuration. 2018-03-07 12:12:08 +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
Janic Duplessis 0c465e2703 Use chunk.forEachModules instead of deprecated chunk.modules 2018-02-26 04:50:51 -05:00
Francisco GuimarĂ£es c0c12d2b06 Fix npm file references package lock (#304)
* Rebase package-lock

* Fix rebasePackageLock call

* Adding tests for package-lock file rewrite

* Fix comment
2017-12-18 16:52:03 +01:00
Frank Schmid 697be1e869 Do not rebase on absolute file references 2017-11-18 11:38:04 +01:00
Frank Schmid 3404001db0 Rebase file references 2017-11-17 11:47:58 +01:00
Frank Schmid e5efb8fb31 Changed to early exit semantics in packaging for google 2017-10-31 14:58:54 +01:00
Debanjan Basu 8ede2a738e update to support google cloud functions 2017-10-30 11:17:05 +11:00
Debanjan Basu 66311c8add upgraded some stuff 2017-10-30 10:48:22 +11:00
Joseph Lee Hunsaker 5c9f14d53f Make serverless-webpack more extensible (#254)
* Make serverless-webpack more extensible

Use PluginManager to make serverless-webpack more extensible 

Following the advice from serverless blog on Advanced Plugin Development. https://serverless.com/blog/advanced-plugin-development-extending-the-core-lifecycle/

* use sublifecycle with webpack command

* Use new lifecycles and adapt unit tests

* Fixed unit test after merge

* Use new events everywhere

* Added section to README
2017-10-23 15:29:17 +02:00
Frank Schmid c2a368b1f4 Support forceExclude to exclude dependencies (#248)
* Support forceExclude to exclude dependencies

* Added unit test

* Added documentation
2017-10-19 11:03:52 +02:00