mirror of
https://github.com/ivabus/pantry
synced 2024-11-09 18:15:18 +03:00
+vercel.com/pkg (#3776)
* +vercel.com/pkg * fix * `npm i` is required * fix * wrong place dep * fix
This commit is contained in:
parent
3ea5d705d4
commit
7369033225
1
projects/vercel.com/pkg/fixture.js
Normal file
1
projects/vercel.com/pkg/fixture.js
Normal file
|
@ -0,0 +1 @@
|
|||
console.log("Hello, World!");
|
44
projects/vercel.com/pkg/package.yml
Normal file
44
projects/vercel.com/pkg/package.yml
Normal file
|
@ -0,0 +1,44 @@
|
|||
distributable:
|
||||
url: https://github.com/vercel/pkg/archive/refs/tags/{{version.raw}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: vercel/pkg/tags
|
||||
|
||||
dependencies:
|
||||
#FIXME I don't know which versions it supports, but Node.js v18 is one of the most well-supported ones.
|
||||
nodejs.org: "*"
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
npmjs.com: "*"
|
||||
|
||||
script: |
|
||||
npm i
|
||||
npm install --global --build-from-source --prefix={{prefix}} --install-links
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
nodejs.org: "*"
|
||||
vercel.com/pkg: "*"
|
||||
script: |
|
||||
test "$(pkg --version)" = "{{version.raw}}"
|
||||
pkg fixture.js -t node18-$TARGET -o fixture
|
||||
test "$(./fixture)" = "Hello, World!"
|
||||
#FIXME Simplify this
|
||||
env:
|
||||
linux/x86-64: {
|
||||
TARGET: "linux-x64"
|
||||
}
|
||||
linux/aarch64: {
|
||||
TARGET: "linux-arm64"
|
||||
}
|
||||
darwin/x86-64: {
|
||||
TARGET: "macos-x64"
|
||||
}
|
||||
darwin/aarch64: {
|
||||
TARGET: "macos-arm64"
|
||||
}
|
||||
|
||||
provides:
|
||||
- bin/pkg
|
Loading…
Reference in a new issue