feat(fractal): add more justfile recipes

Add `justfile` recipes to build a production version of Fractal and
sync it to an S3 bucket.
This commit is contained in:
Oliver Davies 2023-04-01 11:30:45 +01:00
parent 9cc2f181ee
commit 410717bb6b

View file

@ -24,6 +24,19 @@ yarn *args:
{% if "fractal" is same as type %}
fractal *args:
{{ "just yarn fractal {{ args }}" | raw }}
clean:
rm -fr build
build *args:
just fractal build {{ args }}
sync: clean build
#!/usr/bin/env bash
set -eux
aws s3 sync "build/." s3://"${BUCKET_NAME}" \
--acl "public-read" \
--cache-control max-age=3600
{% endif %}
{% if "laravel" is same as type %}