Skip to content

Commit

Permalink
Merge pull request #1922 from serverless-heaven/fix/update-examples
Browse files Browse the repository at this point in the history
Update all examples
  • Loading branch information
j0k3r committed Sep 6, 2024
2 parents 4591fd2 + e915ce4 commit 76da4f3
Show file tree
Hide file tree
Showing 30 changed files with 33,561 additions and 42,586 deletions.
15 changes: 7 additions & 8 deletions examples/babel-multiple-statically-entries/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@
"author": "Nicola Peduzzi <[email protected]> (http://nikso.net)",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.10.5",
"@babel/plugin-transform-runtime": "^7.10.5",
"@babel/preset-env": "^7.10.4",
"babel-loader": "^8.1.0",
"babel-plugin-source-map-support": "^2.1.2",
"serverless": "^1.77.1",
"serverless-offline": "^6.5.0",
"@babel/core": "^7.25.2",
"@babel/plugin-transform-runtime": "^7.25.4",
"@babel/preset-env": "^7.25.4",
"babel-loader": "^9.1.3",
"babel-plugin-source-map-support": "^2.2.0",
"serverless": "^3.39.0",
"serverless-webpack": "file:../..",
"webpack": "^4.44.1"
"webpack": "^5.94.0"
}
}
2 changes: 1 addition & 1 deletion examples/babel-multiple-statically-entries/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins:

provider:
name: aws
runtime: nodejs12.x
runtime: nodejs20.x

# Individual packaging MUST NOT be enabled as we use static entry definitions!
# package:
Expand Down
11,054 changes: 4,586 additions & 6,468 deletions examples/babel-multiple-statically-entries/yarn.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/babel-webpack-5/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"@babel/preset-env",
{
"targets": {
"node": "12"
"node": "20"
}
}
]
Expand Down
6 changes: 3 additions & 3 deletions examples/babel-webpack-5/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
This is the default babel webpack-4 example to look at, because only dynamic
This is the default babel webpack-5 example to look at, because only dynamic
entry point resolution lets you use Serverless completely.
Individual packaging with a per-function dependency optimization is only
available with that approach.

You can also try to invoke a function locally:
You can try to invoke a function locally:
```
serverless invoke local --function=first --path=./event.json
```

Also it has a [.vscode/launch.json](.vscode/launch.json) file for debugging the
functions using `vscode`.
functions using `vscode`.
Loading

0 comments on commit 76da4f3

Please sign in to comment.