diff --git a/.gitignore b/.gitignore index 4deeae7..8e3a3ad 100644 --- a/.gitignore +++ b/.gitignore @@ -50,4 +50,5 @@ node_modules test/project/node_modules local/ test/include -test/project/exclude \ No newline at end of file +test/project/exclude +test/project/.serverless/ \ No newline at end of file diff --git a/modules/filesystem.js b/modules/filesystem.js index 61c38c8..bada64f 100644 --- a/modules/filesystem.js +++ b/modules/filesystem.js @@ -8,7 +8,7 @@ function waitForFiles( path , callback ){ readdir(path , function(err,filesInFolder){ - if(filesInFolder.length == 3) + if(filesInFolder.length == 4) { clearInterval(interval) callback() diff --git a/test/project/.gitignore b/test/project/.gitignore index e8427e6..4330026 100644 --- a/test/project/.gitignore +++ b/test/project/.gitignore @@ -1,2 +1,3 @@ # package directories node_modules +.serverless \ No newline at end of file diff --git a/test/project/.serverless/aws-nodejs.zip b/test/project/.serverless/aws-nodejs.zip index 0954077..a7b45dd 100644 Binary files a/test/project/.serverless/aws-nodejs.zip and b/test/project/.serverless/aws-nodejs.zip differ diff --git a/test/project/.serverless/cloudformation-template-update-stack.json b/test/project/.serverless/cloudformation-template-update-stack.json index d9fc42d..c4a0f8f 100644 --- a/test/project/.serverless/cloudformation-template-update-stack.json +++ b/test/project/.serverless/cloudformation-template-update-stack.json @@ -92,7 +92,7 @@ "S3Bucket": { "Ref": "ServerlessDeploymentBucket" }, - "S3Key": "serverless/aws-nodejs/dev/1503331592072-2017-08-21T16:06:32.072Z/aws-nodejs.zip" + "S3Key": "serverless/aws-nodejs/dev/1503386445033-2017-08-22T07:20:45.033Z/aws-nodejs.zip" }, "FunctionName": "aws-nodejs-dev-hello", "Handler": "handler.hello", @@ -111,14 +111,14 @@ "IamRoleLambdaExecution" ] }, - "HelloLambdaVersionJmeuSGzLNuFgtBIBt36JnyQgXQ6TSauDETCeOK7aIJA": { + "HelloLambdaVersion7p4NexYRuzOsoomEZEP4W10mCzDeqTdtfySKqRUpn8": { "Type": "AWS::Lambda::Version", "DeletionPolicy": "Retain", "Properties": { "FunctionName": { "Ref": "HelloLambdaFunction" }, - "CodeSha256": "JmeuSGzLNuFgtBIBt36JnyQgXQ6TSauDETCeOK7aIJA=" + "CodeSha256": "7p4NexYRuzOs/oomEZEP4W10mCzDeqTdtfySKqRUpn8=" } } }, @@ -131,7 +131,7 @@ "HelloLambdaFunctionQualifiedArn": { "Description": "Current Lambda function version", "Value": { - "Ref": "HelloLambdaVersionJmeuSGzLNuFgtBIBt36JnyQgXQ6TSauDETCeOK7aIJA" + "Ref": "HelloLambdaVersion7p4NexYRuzOsoomEZEP4W10mCzDeqTdtfySKqRUpn8" } } } diff --git a/test/project/.serverless/serverless-state.json b/test/project/.serverless/serverless-state.json index 591a98d..61e5e71 100644 --- a/test/project/.serverless/serverless-state.json +++ b/test/project/.serverless/serverless-state.json @@ -106,7 +106,7 @@ "S3Bucket": { "Ref": "ServerlessDeploymentBucket" }, - "S3Key": "serverless/aws-nodejs/dev/1503331592072-2017-08-21T16:06:32.072Z/aws-nodejs.zip" + "S3Key": "serverless/aws-nodejs/dev/1503386445033-2017-08-22T07:20:45.033Z/aws-nodejs.zip" }, "FunctionName": "aws-nodejs-dev-hello", "Handler": "handler.hello", @@ -125,14 +125,14 @@ "IamRoleLambdaExecution" ] }, - "HelloLambdaVersionJmeuSGzLNuFgtBIBt36JnyQgXQ6TSauDETCeOK7aIJA": { + "HelloLambdaVersion7p4NexYRuzOsoomEZEP4W10mCzDeqTdtfySKqRUpn8": { "Type": "AWS::Lambda::Version", "DeletionPolicy": "Retain", "Properties": { "FunctionName": { "Ref": "HelloLambdaFunction" }, - "CodeSha256": "JmeuSGzLNuFgtBIBt36JnyQgXQ6TSauDETCeOK7aIJA=" + "CodeSha256": "7p4NexYRuzOs/oomEZEP4W10mCzDeqTdtfySKqRUpn8=" } } }, @@ -145,7 +145,7 @@ "HelloLambdaFunctionQualifiedArn": { "Description": "Current Lambda function version", "Value": { - "Ref": "HelloLambdaVersionJmeuSGzLNuFgtBIBt36JnyQgXQ6TSauDETCeOK7aIJA" + "Ref": "HelloLambdaVersion7p4NexYRuzOsoomEZEP4W10mCzDeqTdtfySKqRUpn8" } } } @@ -168,6 +168,9 @@ }, "vpc": {} }, + "plugins": [ + "serverless-async-await" + ], "functions": { "hello": { "handler": "handler.hello", @@ -177,10 +180,10 @@ "vpc": {} } }, - "artifact": "C:\\Users\\Quantum\\Google Drive\\Projets\\Experiment\\serverless-async-await\\test\\project\\.serverless\\aws-nodejs.zip" + "artifact": "C:\\Users\\Quantum\\Google Drive\\Projets\\Experiment\\serverless-async-await\\test\\project\\__build__\\.serverless\\aws-nodejs.zip" }, "package": { - "artifactDirectoryName": "serverless/aws-nodejs/dev/1503331592072-2017-08-21T16:06:32.072Z", + "artifactDirectoryName": "serverless/aws-nodejs/dev/1503386445033-2017-08-22T07:20:45.033Z", "artifact": "aws-nodejs.zip" } } \ No newline at end of file diff --git a/test/project/package.json b/test/project/package.json index 21e6eb0..bbe790d 100644 --- a/test/project/package.json +++ b/test/project/package.json @@ -10,6 +10,6 @@ "author": "", "license": "ISC", "dependencies": { - "serverless-async-await": "^1.1.0" + "serverless-async-await": "^1.1.3" } } diff --git a/test/project/serverless.yml b/test/project/serverless.yml index 1e69309..8086944 100644 --- a/test/project/serverless.yml +++ b/test/project/serverless.yml @@ -16,8 +16,8 @@ service: aws-nodejs # NOTE: update this with your service name # You can pin your service to only deploy with a specific Serverless version # Check out our docs for more details # frameworkVersion: "=X.X.X" -#plugins: -# - serverless-async-await +plugins: + - serverless-async-await provider: name: aws