-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update all examples #626
Update all examples #626
Conversation
So they are up to date with deps and they are all working (for sure: I've tested them one by one) Upgrade `"serverless-webpack": "file:../..",` to `"serverless-webpack": "^5.3",` because each test resulted in `Error: Cannot find module 'webpack'` ... (only with NPM not with Yarn) - remove outdated `babel` example because it use webpack 3 and it's superseded by `babel-webpack-4` - remove `serverless-offline` example as other one already use serverless-offline - update all examples to latest deps version
Avoid double build when PR is created on upstream (a build for PR and one for push). Only run coverage one build (and send coverage only once instead of twice). Also don't run coverage on Appveyor as we don't use it.
# avoid double Travis build when the PR is created on upstream | ||
if: | | ||
type = pull_request OR \ | ||
branch = master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we run builds on master
to make sure it build properly? Some repositories treat master as unstable, but not sure whether we are doing that for this repo.
@@ -6,7 +6,7 @@ plugins: | |||
|
|||
provider: | |||
name: aws | |||
runtime: nodejs6.10 | |||
runtime: nodejs12.x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I tried using the examples on a project recently and couldn't get them to work.
What did you implement:
I updated all examples to latest deps & version.
They should all run properly and be up to date.
I've removed some of them because there weren't accurate as of today.
I've also updated the Travis build:
Note: I targeted master so dependabot PR will be closed automatically after merging that PR.
Note 2: lot of diff stuff but mostly due to lock files being updated.
Todos:
Is this ready for review?: YES
Is it a breaking change?: NO