From 39cd1c18f85e72e49788c4855f75fbc2c0ef214c Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Wed, 29 Jan 2025 12:19:37 +0100 Subject: [PATCH] Automatically run npm install tailwindcss@3 via setup.sh, as the new default version of the package is incompatible with the project --- run/readme.md | 2 -- run/setup.sh | 4 ++++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/run/readme.md b/run/readme.md index 62d3c5cb..66050852 100644 --- a/run/readme.md +++ b/run/readme.md @@ -16,8 +16,6 @@ platforms, but for lack of suitable hardware, this can not be guaranteed. The civilized way of installing this is to use [SDKMAN](https://sdkman.io/); graalce is a good distribution choice but it doesn't matter too much. -**Tailwindcss** - Install NPM and run `npm install tailwindcss @tailwindcss/cli` - ## Quick Set up [https://docs.marginalia.nu/](https://docs.marginalia.nu/) has a more comprehensive guide for the install diff --git a/run/setup.sh b/run/setup.sh index e82e17a3..aeefd974 100755 --- a/run/setup.sh +++ b/run/setup.sh @@ -74,3 +74,7 @@ download_model model/tfreq-new-algo3.bin https://huggingface.co/MarginaliaNu/Mar download_model model/lid.176.ftz https://huggingface.co/MarginaliaNu/MarginaliaModelData/resolve/c9339e4224f1dfad7f628809c32687e748198ae3/lid.176.ftz?download=true 340156704bb8c8e50c4abf35a7ec2569 popd + +pushd $(dirname $0)/.. +npm install -D tailwindcss@3 +popd