From b028ead93b8ffed4410b974f221e9280398ede65 Mon Sep 17 00:00:00 2001 From: Rajdeep Malakar Date: Tue, 24 Oct 2023 02:32:26 +0530 Subject: [PATCH] +vitejs.dev (#3783) * +vitejs.dev * try fix * fix tests * test fix try * check Brewkit version --- projects/vitejs.dev/package.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 projects/vitejs.dev/package.yml diff --git a/projects/vitejs.dev/package.yml b/projects/vitejs.dev/package.yml new file mode 100644 index 00000000..0b19d632 --- /dev/null +++ b/projects/vitejs.dev/package.yml @@ -0,0 +1,24 @@ +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