Skip to content

Commit

Permalink
feat(cli-runtime): add node18, node20, bun runtime (#200)
Browse files Browse the repository at this point in the history
* feat(cli-runtime): add node18, node20, bun runtime

* fix(cli-runtime): fix replace input

* doc: update changelog
  • Loading branch information
bingtsingw authored Nov 22, 2023
1 parent c2fb200 commit 6c220be
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/hydrogen
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change

## 2.50.1

- feat(cli-common) add node18, node20 and bun runtime (#200)

## 2.50.0

- feat(fc3-plugin) add fc3-plugin (#198)
Expand Down
12 changes: 12 additions & 0 deletions dev-packages/cli-runtime/runtimes/default/malagu-bun-baseline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
malagu:
cloud:
layer:
name: bun-v1-0-13-linux-x64-${malagu.cloud.function.runtime|replace('\\.', '-')}
compatibleRuntime:
- ${malagu.cloud.function.runtime}
codeUri: https://github.com/oven-sh/bun/releases/download/bun-v1.0.13/bun-linux-x64-baseline.zip
function:
env:
PATH: /opt/bun-linux-x64-baseline:$PATH
layers:
- bun-v1-0-13-linux-x64-${malagu.cloud.function.runtime|replace('\\.', '-')}
12 changes: 12 additions & 0 deletions dev-packages/cli-runtime/runtimes/default/malagu-node18.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
malagu:
cloud:
layer:
name: node-v18-18-2-linux-x64-${malagu.cloud.function.runtime|replace('\\.', '-')}
compatibleRuntime:
- ${malagu.cloud.function.runtime}
codeUri: https://nodejs.org/dist/v18.18.2/node-v18.18.2-linux-x64.tar.gz
function:
env:
PATH: /opt/node-v18.18.2-linux-x64/bin:$PATH
layers:
- node-v18-18-2-linux-x64-${malagu.cloud.function.runtime|replace('\\.', '-')}
12 changes: 12 additions & 0 deletions dev-packages/cli-runtime/runtimes/default/malagu-node20.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
malagu:
cloud:
layer:
name: node-v20-9-0-linux-x64-${malagu.cloud.function.runtime|replace('\\.', '-')}
compatibleRuntime:
- ${malagu.cloud.function.runtime}
codeUri: https://nodejs.org/dist/v20.9.0/node-v20.9.0-linux-x64.tar.gz
function:
env:
PATH: /opt/node-v20.9.0-linux-x64/bin:$PATH
layers:
- node-v20-9-0-linux-x64-${malagu.cloud.function.runtime|replace('\\.', '-')}

0 comments on commit 6c220be

Please sign in to comment.