Install Tailwind from nixpkgs

This commit is contained in:
Oliver Davies 2025-02-23 01:52:42 +00:00
parent 3db18bb789
commit 431b33356e
3 changed files with 21 additions and 807 deletions

View file

@ -1,39 +1,34 @@
{
pkgs,
lib,
config,
inputs,
...
}:
{ pkgs, ... }:
{
packages = with pkgs; [ git ];
packages = with pkgs; [
git
tailwindcss
];
languages = {
javascript = {
enable = true;
pnpm = {
enable = true;
install.enable = true;
};
};
php.enable = true;
};
processes = {
sculpin.exec = "vendor/bin/sculpin generate --server --watch";
tailwind.exec = "npx tailwindcss --config tailwind.config.ts --input css/tailwind.css --output ../source/build/tailwind.css";
tailwind = {
exec = "tailwindcss --config tailwind.config.ts --input css/tailwind.css --output ../source/build/tailwind.css --watch";
process-compose = {
is_tty = true;
working_dir = "assets";
};
};
};
tasks = { };
enterShell = ''
which composer
[[ ! -d vendor ]] && composer install
'';
tasks = { };
enterTest = '''';
scripts = {
@ -42,6 +37,11 @@
rsync -avz static/ output_prod
rsync -avz output_prod/ ssh.oliverdavies.uk:/var/www/vhosts/www.oliverdavies.uk
'';
"tailwind-build".exec = ''
cd assets
tailwindcss --config tailwind.config.ts --input css/tailwind.css --output ../source/build/tailwind.css --minify
'';
};
}