Monorepo for Tangled tangled.org
at master 1.3 kB view raw
1{ 2 runCommandLocal, 3 htmx-src, 4 htmx-ws-src, 5 lucide-src, 6 inter-fonts-src, 7 ibm-plex-mono-src, 8 actor-typeahead-src, 9 sqlite-lib, 10 tailwindcss, 11 dolly, 12 src, 13}: 14runCommandLocal "appview-static-files" { 15 # TOOD(winter): figure out why this is even required after 16 # changing the libraries that the tailwindcss binary loads 17 sandboxProfile = '' 18 (allow file-read* (subpath "/System/Library/OpenSSL")) 19 ''; 20} '' 21 mkdir -p $out/{fonts,icons,logos} && cd $out 22 cp -f ${htmx-src} htmx.min.js 23 cp -f ${htmx-ws-src} htmx-ext-ws.min.js 24 cp -rf ${lucide-src}/*.svg icons/ 25 cp -f ${inter-fonts-src}/web/InterVariable*.woff2 fonts/ 26 cp -f ${inter-fonts-src}/web/InterDisplay*.woff2 fonts/ 27 cp -f ${inter-fonts-src}/InterVariable*.ttf fonts/ 28 cp -f ${ibm-plex-mono-src}/fonts/complete/woff2/IBMPlexMono*.woff2 fonts/ 29 cp -f ${actor-typeahead-src}/actor-typeahead.js . 30 31 ${dolly}/bin/dolly -output logos/dolly.png -size 180x180 32 ${dolly}/bin/dolly -output logos/dolly.ico -size 48x48 33 ${dolly}/bin/dolly -output logos/dolly.svg -color currentColor 34 # tailwindcss -c $src/tailwind.config.js -i $src/input.css -o tw.css won't work 35 # for whatever reason (produces broken css), so we are doing this instead 36 cd ${src} && ${tailwindcss}/bin/tailwindcss -i input.css -o $out/tw.css 37''