Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Conversation

@neerajmandal
Copy link
Contributor

Specify Node.js runtime version in serverless.yml under provider. Throws an error for invalid Node.js version.

AB#704

@coveralls
Copy link

coveralls commented Aug 19, 2019

Coverage Status

Coverage increased (+0.3%) to 84.875% when pulling 1811633 on nemand/nodeRuntime into 44185c5 on dev.

Copy link
Contributor

@PIC123 PIC123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@neerajmandal
Copy link
Contributor Author

Made some more changes. Now if the user does not specify runtime version the plugin throws an errors and just does not use the default value (10.14.1), Also added a new test case.

Copy link
Contributor

@tbarlow12 tbarlow12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting there :)

@@ -0,0 +1,63 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you document where you got this file? Maybe in a comment in functionApp.ts?


//Searches for the latest verison
if(runtime.includes(".x")){
let majorVersion = runtime.replace(/[^0-9]/g,"");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use const here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, remove extra space

Copy link
Contributor

@tbarlow12 tbarlow12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :shipit:

@tbarlow12 tbarlow12 merged commit 8c3c7a9 into dev Aug 23, 2019
@wbreza wbreza deleted the nemand/nodeRuntime branch September 12, 2019 20:36
tbarlow12 pushed a commit that referenced this pull request Sep 13, 2019
Specify Node.js runtime version in serverless.yml under provider. Throws an error for invalid Node.js version.

AB#704
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants