mirror of
https://github.com/ivabus/pantry
synced 2024-11-23 00:45:07 +03:00
25 lines
579 B
YAML
25 lines
579 B
YAML
|
distributable: ~
|
||
|
|
||
|
versions:
|
||
|
github: vitejs/vite/tags
|
||
|
strip: /v/
|
||
|
|
||
|
build:
|
||
|
dependencies:
|
||
|
deno.land: "*"
|
||
|
script: |
|
||
|
{{pkgx.prefix}}/pkgx.sh/brewkit/v0/bin/pkg --version
|
||
|
mkdir -p "{{prefix}}"/bin
|
||
|
deno compile -Ar npm:vite@{{version.raw}} -o vite
|
||
|
mv vite "{{prefix}}"/bin/vite # If the binay doesn't get built, the build will fail, not the tests. So, we'll know.
|
||
|
# Required. Else, wouldn't work.
|
||
|
skip: fix-patchelf
|
||
|
|
||
|
test:
|
||
|
script: |
|
||
|
vite --version
|
||
|
test "$(vite --version | grep -o 'vite/[^ ]*')" = "vite/{{version.raw}}"
|
||
|
|
||
|
provides:
|
||
|
- bin/vite
|