+tailwindcss.com (#5732)

* add tailwindcss

* fix wrong project name

* add vendored warning

* add comment on tailwindcss vendored warning
This commit is contained in:
Diogo Correia 2024-03-28 20:39:36 +00:00 committed by GitHub
parent 892c4c6123
commit b70f838748
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,33 @@
distributable: ~
# opted to use the pre-built binary from the official release instead of building from source to
# not require a nodejs runtime to run tailwindcss as otherwise it would. We could also try to
# reproduce their build process to build the self-contained binary ourselves in the future.
warnings:
- vendored
versions:
github: tailwindlabs/tailwindcss
strip: /^v/
build:
dependencies:
curl.se: "*"
working-directory: ${{prefix}}
script: |
curl -Lfo tailwindcss https://github.com/tailwindlabs/tailwindcss/releases/download/v{{version}}/tailwindcss-$PLATFORM
chmod +x tailwindcss
mkdir -p bin
mv tailwindcss bin
env:
darwin/aarch64: { PLATFORM: macos-arm64 }
darwin/x86-64: { PLATFORM: macos-x64 }
linux/aarch64: { PLATFORM: linux-arm64 }
linux/x86-64: { PLATFORM: linux-x64 }
provides:
- bin/tailwindcss
test:
script:
- tailwindcss --help | grep -q "tailwindcss v{{version}}"