48 lines
806 B
Nix
48 lines
806 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
inputs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
packages = with pkgs; [ git ];
|
|
|
|
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";
|
|
};
|
|
|
|
enterShell = ''
|
|
which composer
|
|
[[ ! -d vendor ]] && composer install
|
|
'';
|
|
|
|
tasks = { };
|
|
|
|
enterTest = '''';
|
|
|
|
scripts = {
|
|
publish.exec = ''
|
|
sculpin generate --env prod
|
|
rsync -avz static/ output_prod
|
|
rsync -avz output_prod/ ssh.oliverdavies.uk:/var/www/vhosts/www.oliverdavies.uk
|
|
'';
|
|
};
|
|
|
|
}
|