Update build script

This commit is contained in:
Oliver Davies 2024-08-18 12:09:39 +01:00
parent d54a624e6c
commit d55ac5332d
2 changed files with 6 additions and 6 deletions

2
run
View file

@ -12,7 +12,7 @@ PATH="${PATH}:./vendor/bin"
function generate {
local args=()
if [[ "${APP_ENV:-}" == "production" ]]; then
if [[ "${APP_ENV:-}" == "prod" ]]; then
args=(--env="prod")
else
args=(--server --watch)

View file

@ -65,15 +65,15 @@ function npm:build:css {
}
function publish {
export NODE_ENV=production
export APP_ENV=production
tag-release
git push
tag-release
git push --tags
git stash
clean
export APP_ENV=prod
export NODE_ENV=production
(cd assets && npm:build:css)
generate