Add setup task

Runs initial setup tasks to get the site working.
This commit is contained in:
Oliver Davies 2024-08-20 09:46:12 +01:00
parent 768c32f137
commit 962587660c

View file

@ -64,6 +64,17 @@ function npm:build:css {
--output ../source/build/tailwind.css "${args[@]}"
}
function setup {
git submodule update --recursive --init
git submodule update --recursive --remote || true
composer install
(cd assets && pnpm install)
(cd assets && NODE_ENV=production npm:build:css)
APP_ENV=prod generate
}
function publish {
git push