2023-03-08 21:13:28 +00:00
|
|
|
# {{ managedText | raw }}
|
|
|
|
|
2023-02-21 08:29:09 +00:00
|
|
|
default:
|
|
|
|
@just --list
|
|
|
|
|
|
|
|
{% if "php" is same as language %}
|
|
|
|
composer *args:
|
|
|
|
{{ "just _exec php composer {{ args }}" | raw }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if "drupal-project" is same as type %}
|
|
|
|
drush *args:
|
|
|
|
{{ "just _exec php drush {{ args }}" | raw }}
|
2023-03-08 21:08:56 +00:00
|
|
|
|
|
|
|
install *args:
|
2023-03-10 23:16:11 +00:00
|
|
|
{{ "just _exec php drush site:install -y {{ args }}" | raw }}
|
2023-02-21 08:29:09 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2023-03-12 12:36:59 +00:00
|
|
|
{% if "node" is same as language %}
|
|
|
|
yarn *args:
|
|
|
|
{{ "just _exec node yarn {{ args }}" | raw }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if "fractal" is same as type %}
|
|
|
|
fractal *args:
|
|
|
|
{{ "just yarn fractal {{ args }}" | raw }}
|
2023-04-01 10:30:45 +00:00
|
|
|
|
|
|
|
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
|
2023-03-12 12:36:59 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2023-03-13 21:18:30 +00:00
|
|
|
{% if "laravel" is same as type %}
|
|
|
|
artisan *args:
|
|
|
|
docker compose run \
|
|
|
|
--entrypoint php \
|
|
|
|
--rm \
|
|
|
|
--tty \
|
|
|
|
php artisan {{ "{{ args }}" | raw }}
|
|
|
|
{% endif %}
|
|
|
|
|
2023-02-21 08:29:09 +00:00
|
|
|
_exec +args:
|
|
|
|
{{ "docker compose exec {{ args }}" | raw }}
|