mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
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:
parent
9cc2f181ee
commit
410717bb6b
|
@ -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 %}
|
||||
|
|
Loading…
Reference in a new issue