Install Tailwind from nixpkgs
This commit is contained in:
parent
3db18bb789
commit
431b33356e
3 changed files with 21 additions and 807 deletions
42
devenv.nix
42
devenv.nix
|
@ -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
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue