Skip to content

Commit

Permalink
Merge branch 'master' into fix/ignore-handlers-with-image-name
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyesBen authored Oct 12, 2024
2 parents 1fef52f + e87892d commit 647da79
Show file tree
Hide file tree
Showing 38 changed files with 37,182 additions and 45,537 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,24 @@ jobs:
publish-npm:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: "Install Node.js"
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm test
- run: npm publish

- name: "Install dependencies"
run: npm ci

- name: "Run tests"
run: "npm run test"

- name: "Publish package"
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
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 647da79

Please sign in to comment.