145 Commits

Author SHA1 Message Date
Philipp Muens
f5b5c7f0f5 Switch from _.filter to _.compact to remove falsey values 2017-07-19 10:06:23 +02:00
Philipp Muens
f089e8f07f Fix and update tests 2017-07-18 12:48:54 +02:00
Philipp Muens
5916665cb6 Add enhancements to harden dev dependency detection 2017-07-18 12:48:31 +02:00
Philipp Muens
ed029a32da Catch and resolve rejected exec calls 2017-07-17 14:33:53 +02:00
Philipp Muens
9e1c322436 Add line-based eslint disable statements 2017-07-17 14:33:53 +02:00
Philipp Muens
9700ebf226 Add usage of Lodash utility methods 2017-07-17 14:33:53 +02:00
Philipp Muens
cb00caed84 Switch from stdout stream based to tmp file approach 2017-07-17 14:33:53 +02:00
Philipp Muens
bb5e62e61a Fix dev dependency exclusion bug 2017-07-17 14:33:53 +02:00
Eslam λ Hefnawy
084f8f3027 Merge pull request #3910 from ryansb/ignore-custom-plugins
Ignore custom plugins in the project when uploading artifacts
2017-07-12 19:41:14 +07:00
Eslam A. Hefnawy
bcbbd907ab skip service packaging if artifact is provided 2017-07-07 20:59:00 +07:00
Eslam A. Hefnawy
42d48892c2 fix deploy function with service artifact 2017-07-07 19:22:42 +07:00
Eslam A. Hefnawy
ea9c7659e2 Merge branch '3625-deploy-function-pkg' of https://github.com/darkowlzz/serverless into darkowlzz-3625-deploy-function-pkg 2017-07-07 18:22:59 +07:00
Ryan S. Brown
ef1cac76f0 Ignore custom plugins in the project when uploading artifacts 2017-07-06 22:59:32 -04:00
Philipp Muens
e2df8f2b45 Update tests for new packageFunction() functionality 2017-07-04 09:30:20 +02:00
Eslam λ Hefnawy
ea79e2b1dd Merge pull request #3830 from jthomas/master
Add disable parameter to function package options
2017-07-03 23:09:43 +07:00
Philipp Muens
0d8174ba72 Merge master into PR 2017-07-03 17:04:49 +02:00
Eslam λ Hefnawy
9f7e740b09 Merge pull request #3838 from serverless/only-re-deploy-when-updated
Only re-deploy when code or service updated
2017-07-03 19:54:58 +07:00
Eslam λ Hefnawy
fadb11f9ac Merge pull request #3880 from serverless/fix-node-modules-regex
Fix node_modules regex in excludeDevDependencies to be OS independent
2017-07-03 17:36:38 +07:00
Sunny
042b6e2e74 Add test for deployFunction() with artifact 2017-06-30 23:29:19 +05:30
Sunny
8d8f0645b4 Add packageService test for function artifact path 2017-06-30 23:29:19 +05:30
Sunny
59a25a9dbd Add function artifact check in deployFunction
- Adds check for function package artifact in packageFunction() and
avoids packing if a package artifact is found.
- Adds check for function artifact in deployFunction() and use the
provided artifact to deploy if available.
2017-06-30 23:29:19 +05:30
Philipp Muens
082a1dc05f Fix node_modules regex to be OS independent 2017-06-30 14:07:13 +02:00
Philipp Muens
e329bf9ad8 Only re-deploy when code or service updated 2017-06-30 09:26:55 +02:00
Philipp Muens
34595e1f6d Add opt-out config for dev dependency exclusion 2017-06-30 09:25:59 +02:00
Greg Thornton
60caa22edb Skip packaging if artifact specified 2017-06-28 21:26:08 -05:00
Philipp Muens
191a0b8911 Fix linting error 2017-06-28 09:11:39 +02:00
James Thomas
86439ff07c Add ignore parameter to function package options.
This will allow functions to be excluded from the service packaging.
2017-06-27 17:36:15 +01:00
Philipp Muens
a3e233cc79 Replace walkDirSync logic with glob usage 2017-06-17 17:18:48 +01:00
Philipp Muens
9f67a39f38 Exclude dev dependencies in .zip file 2017-06-16 19:30:07 +01:00
Philipp Muens
6e807fa1bf Update code to be run on "deploy" and "package" 2017-06-13 08:39:01 +02:00
Philipp Muens
b43a421d38 Update code to re-use existing utils functionality 2017-06-12 11:13:01 +02:00
Philipp Muens
0dca35a2c1 Throw error when command not run in service 2017-06-12 10:38:59 +02:00
Philipp Muens
13ff0d6453 Fix test 2017-06-11 21:02:56 +02:00
Philipp Muens
dc677b8e9c Update error message 2017-06-11 21:02:25 +02:00
Philipp Muens
9b6cd8f331 Simplify code / make test more restrictive 2017-06-08 09:30:43 +02:00
Alex Casalboni
c74965da11 Fixed linting 2017-06-05 18:01:04 +02:00
Alex Casalboni
d5f5f92f48 Raise error if no file matches before zipping 2017-06-05 17:36:14 +02:00
Alex Casalboni
e29397ca5c Added test to verify error if no file matches before zipping 2017-06-05 17:35:40 +02:00
Philipp Muens
e6f2c2d3aa Update other relevant parts of the codebase 2017-05-19 15:08:35 +02:00
Frank Schmid
939112a639 Use sinon-chai to improve Sinon based unit tests 2017-05-17 17:13:33 +02:00
Frank Schmid
ba2533ff7d Update UT for lib/plugins/package/lib/zipService 2017-05-17 17:13:33 +02:00
Frank Schmid
4d2b2ea88e Update UT for lib/plugins/package/lib/packageService 2017-05-17 17:13:32 +02:00
Frank Schmid
64142c8c94 Fix possible race in package/deploy UT 2017-05-17 17:13:32 +02:00
Frank Schmid
855f037736 Update UT for lib/plugins/package/package 2017-05-17 17:13:32 +02:00
Eslam A. Hefnawy
4623e0bbed final packaging fixes 2017-04-25 23:03:46 +07:00
Frank Schmid
376d5cf6fe Fixed unit tests. Coverage back to 100%. 2017-04-20 18:39:55 +02:00
Frank Schmid
84d48a5a48 Move explicit function packaging entrypoint to topmost level.
3rd party plugins now can access it and trigger a single function package which was restricted to AWS before.
2017-04-20 17:49:55 +02:00
Frank Schmid
6086111704 Set artifact properties with the ZIP result paths. 2017-04-20 16:43:20 +02:00
Frank Schmid
20cd54b229 Removed provider dependencies. 2017-04-20 15:33:50 +02:00
Frank Schmid
6be0ba2f8f Move package code up and add createDeploymentArtifacts to topmost package command. 2017-04-20 15:11:35 +02:00