From 962587660c4dc76968d7c3677ad8037effba9266 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 20 Aug 2024 09:46:12 +0100 Subject: [PATCH] Add `setup` task Runs initial setup tasks to get the site working. --- run.local | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/run.local b/run.local index 5393caaa5..a09bde14f 100755 --- a/run.local +++ b/run.local @@ -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