50 Commits

Author SHA1 Message Date
Florian Motlik
4e39b32ada Merge pull request #2681 from serverless/rework-include-exclude
Bring back include configuration for an easier packaging control
2016-11-16 16:18:44 +01:00
Nik Graf
386d9d6718 replace ellipsis with three dots to improve non-unicode console support 2016-11-15 14:00:27 +01:00
Philipp Muens
66c29963c0 Remove unnecessary exclude of .serverless directory
This exclude is already done in the packageService.js file.
2016-11-15 13:48:39 +01:00
Austen
700eb2ea86 Merge pull request #2561 from doapp-ryanp/master
Make `deploy function` lifecycle events more fine grain
2016-11-14 08:00:08 -08:00
Philipp Muens
6910aff632 Move inclusion after exclusion of .serverless dir
This makes it possible that everything (even the .serverless dir) can be included again.
2016-11-14 10:26:44 +01:00
Philipp Muens
74a3f004d7 Bring back include configuration for an easier packaging control 2016-11-14 10:26:44 +01:00
Doug Moscrop
037dea9f14 fix Glob for .git and .serverless directories 2016-11-03 18:39:41 -04:00
doapp-ryanp
7fd01a4e21 bump to fix CI 2016-11-01 11:55:18 -05:00
doapp-ryanp
9ce0dea165 Merge remote-tracking branch 'upstream/master' 2016-11-01 11:54:47 -05:00
doapp-ryanp
d035fb2f0f clear statement when skipping default pkging 2016-10-28 16:20:06 -05:00
Jon Sharratt
c0a4a58d38 move func exclude to be last in pattern array 2016-10-28 11:51:50 +01:00
Jon Sharratt
1cd3a8d507 add follow of symlinks to exclude / globbing 2016-10-28 11:51:49 +01:00
Jon Sharratt
6b73fe2147 support ! globs via glob-all to allow re-inclusion 2016-10-28 11:51:49 +01:00
Nik Graf
9611150416 replace ... with ellipsis character in lib 2016-10-19 06:31:55 +02:00
Jon Sharratt
d05258516e use sync instead for globbing 2016-10-01 11:11:36 +01:00
Jon Sharratt
204632b10e throw glob errors 2016-10-01 11:11:36 +01:00
Jon Sharratt
2d748e3d76 include dot files and fix .serverless glob 2016-10-01 11:11:36 +01:00
Jon Sharratt
28c643ffe5 fix linting issues for zipService changes 2016-10-01 11:11:36 +01:00
Jon Sharratt
1735998160 use exclude as globs for zip file 2016-10-01 11:11:36 +01:00
Jon Sharratt
6861a6bdd1 remove passing of include through to package service 2016-10-01 11:11:36 +01:00
John McKim
ea864be300 merge with master 2016-09-02 07:17:57 +10:00
Florian Motlik
6692d2d0f1 Merge pull request #1961 from mallzee/archivejs-replacing-jszip
fix(zip): Switch to archivejs to reduce high memory footprint
2016-09-01 13:19:34 +02:00
John McKim
c7787793f4 check servicePath exists before cleaning up #1980 2016-09-01 07:32:35 +10:00
John McKim
44823ebc71 merge with master 2016-09-01 07:30:17 +10:00
Eslam A. Hefnawy
c849c7d11d removed more references to serverless.env.yaml 2016-08-31 16:37:58 +09:00
Jamie Sutherland
7834ca0217 fix(zip): Switch to archivejs to reduce high memory footprint 2016-08-30 11:51:30 +01:00
John McKim
b1143c4b9f Fix function package names and warning when updating stack with --noDeploy 2016-08-30 07:58:48 +10:00
John McKim
b7af61647c fix linting issues 2016-08-30 07:42:12 +10:00
John McKim
5a5240ccc5 fix tests after merge with master 2016-08-25 07:39:39 +10:00
John McKim
a413a4a471 merge 2016-08-25 07:23:47 +10:00
Florian Motlik
39c330569e Merge pull request #1906 from serverless/update-artifact-deployment-process
Update artifact deployment process
2016-08-24 16:27:04 +02:00
Philipp Muens
b72cd2f882 Remove timestamp from zipFileName
The timestamp is not necessary anymore as the zip file is uploaded into a timestamped
directory on S3.
2016-08-24 11:37:19 +02:00
John McKim
a972319447 fix linting issue 2016-08-24 07:29:15 +10:00
John McKim
fcd5f2f3d9 Fix issues with deploying individual functions 2016-08-24 07:26:14 +10:00
John McKim
d6464d0f4b exclude npm-debug.log 2016-08-24 06:44:25 +10:00
John McKim
5a2c9d2224 update packaging to support individual packages per function 2016-08-22 07:40:16 +10:00
Vasiliy Solovey
3b9ef85846 Merged upstream master and resolved conflicts 2016-08-19 15:01:36 +03:00
Nick Chisiu
16aa6581ab fix #1854 - update npm devDependencies packages (#1879)
* fix #1854 - added latest version of eslint-config-airbnb-base package

* fix #1854 - added latest npm shrinkwrap scheme

* fix #1854 - added latest npm coveralls package

* fix #1854 - added latest npm eslint package

* fix #1854 - added latest npm eslint-config-airbnb package

* fix #1854 - added latest npm eslint-plugin-import package

* fix #1854 - added latest npm eslint-plugin-jsx-a11y package

* fix #1854 - added latest npm eslint-plugin-react package

* fix #1854 - fixed estlint new-parens errors for integration test

* fix #1854 - fixed estlint new-parens errors for yaml parsers tests

* fix #1854 - fixed estlint max-len errors for util tests

* fix #1854 - disabled no-extraneous-dependencies on eslintrc for NodeJS 4 incapability on this feature

* fix #1854 - fixed eslint new-parens errors for Service tests

* fix #1854 - fixed eslint new-parens errors for Serverless tests

* fix #1854 - fixed eslint new-parens errors for plugin manager tests

* fix #1854 - fixed eslint new-parens errors for plugin tracking tests

* fix #1854 - fixed eslint new-parens errors for plugin package zipService lib

* fix #1854 - fixed eslint new-parens errors for plugin package zipService tests

* fix #1854 - fixed eslint trailing spaces errors for plugin package zipService lib

* fix #1854 - fixed eslint new-parens errors for plugin package cleanup  tests

* fix #1854 - fixed eslint new-parens errors for plugin create tests

* fix #1854 - fixed eslint dot same line expectation error on plugin aws logs index

* fix #1854 - fixed eslint operator assignment error on plugin aws logs index

* fix #1854 - fixed eslint dot location error on plugin aws invoke tests

* fix #1854 - fixed eslint new-parens error on plugin aws invoke tests

* fix #1854 - fixed eslint new-parens error on plugin aws deployFunction tests

* fix #1854 - fixed eslint new-parens error on plugin aws deploy uploadDeploymentPackage tests

* fix #1854 - fixed eslint new-parens error on plugin aws deploy updateStack tests

* fix #1854 - fixed eslint new-parens error on plugin aws deploy createStack tests

* fix #1854 - fixed eslint new-parens error on plugin aws deploy apiGateway lib deployment

* fix #1854 - fixed eslint unary typeof whitespace req error on Serverless Service class

* fix #1854 - fixed eslint unary typeof whitespace req error on Serverless Service class ( second fix )

* fix #1854 - fixed eslint no-lonely-if req error on Serverless Service class

* fix #1854 - disabled react/require-extension on eslintrc because it's deprecated

* fix #1854 - AwsCompileApigEvents #constructor() should resolve if no functions are given:
                 Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

* fix #1854 - createStack #postCreate() should resolve:
                 Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

* fix #1854 - emptyS3Bucket #deleteObjects() should resolve if objectsInBucket is empty:
                 Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

* fix #1854 - AwsInvoke #extendedValidate() should resolve if path is not given:
                 Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

* fix #1854 - #cleanup() should resolve if the .serverless directory is not present:
                 Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

* fix #1854 -#validate() should resolve if servicePath is given:
                Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

* fix #1854 -  Service #load() should resolve if no servicePath is found:
                 Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.

* fix #1854 - added latest mocha package

* fix #1854 - added latest sinon npm package

* fix #1854 - serverless/lib/plugins/aws/deploy/tests/createStack.js 136:48  error  Missing semicolon  semi

* fix #1854 - serverless/lib/plugins/package/tests/cleanup.js 35:7  error  Missing semicolon  semi

* fix #1854 - serverless/lib/plugins/package/tests/validate.js 22:49  error  Missing semicolon  semi

* fix #1854 - added latest npm shrinkwrap

* fix #1854 - fixed no-extra-boolean-cast eslint error on aws deploy apiGateway methods

* fix #1854 - fixed  new-parens eslint error on serverless tests for Service class
2016-08-18 11:51:09 +02:00
Andrew McDonald
0f2659c5a3 Fixing trailing space
npm test isn't working at all for me. ( windows )
2016-08-15 12:39:28 -07:00
Andrew McDonald
391f1c2bb7 Bringing line length under 100 due to lint issue 2016-08-15 11:50:21 -07:00
Andrew McDonald
fa2088808b fix #1860 - Cannot find module for any node_modules
When running on windows, 'UNIX' was incorrectly being passed into jszip as the host platform which causes it to generate a zip file which lambda doesn't unpack properly. ( I think its the \ vs / thing  - the zip file looks correct when I open it in a gui tool, but using unpack unpacks a bunch of files with '\' in the filename and no actual folder structure )
2016-08-15 11:41:22 -07:00
miltador
f7709e597a Fixed platform detection for generating zip
On Windows, process.platform equals 'win32', therefore platformName was 'UNIX' instead of 'DOS'.
This leaded into a strange behavior on UNIX platforms.
According to jszip docs, platform option also accepts process.platform values.
I simplified the code by passing process.platform directly.
2016-08-15 10:37:47 +03:00
Chris Olszewski
4ac22f2246 switch from node-zip to jszip 2016-08-04 14:23:52 -05:00
Philipp Muens
c9d1453d3a Switch from .yaml to the more convenient .yml 2016-07-27 10:39:41 +02:00
Sander van de Graaf
2052611eb5 Make sure the linter is happy as well 2016-07-21 12:43:45 +02:00
Sander van de Graaf
4756586709 Make sure permissions are zipped
As also mentioned in PR #960, the permissions need to be set correctly, to be able to upload binaries, this is a regression :)
2016-07-20 16:57:05 +02:00
Arnaud Rebts
390e7d0037 Don't use regex to test file path in package plugin
In a regex, `.` means any character, so the default exclude list will
actually exclude more than intended (any path containing `.serverless`
for example).

Instead, use `String#indexOf()`
2016-07-12 17:22:25 +02:00
Philipp Muens
b74fa46563 Update hook order and zipping functionality
Update the hook order because the functions need the .zip file in their resource
definition. Furthermore the zipping process / writing it to disc was optimized.
The ".serverless" directory is also added to the "default exclude array" so that it's not
considered during packaging.
2016-07-07 20:10:05 +02:00
Philipp Muens
16679f4db8 Fix code and tests so that the package plugin works correctly 2016-07-07 20:10:05 +02:00
Philipp Muens
259c58d822 Add package plugin 2016-07-07 20:10:05 +02:00