mirror of
https://github.com/opdavies/build-configs.git
synced 2025-02-02 05:47:32 +00:00
40 lines
813 B
Twig
40 lines
813 B
Twig
# {{ managedText | raw }}
|
|
|
|
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 }}
|
|
|
|
install *args:
|
|
{{ "just _exec php drush site:install -y {{ args }}" | raw }}
|
|
{% endif %}
|
|
|
|
{% 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 }}
|
|
{% endif %}
|
|
|
|
{% if "laravel" is same as type %}
|
|
artisan *args:
|
|
docker compose run \
|
|
--entrypoint php \
|
|
--rm \
|
|
--tty \
|
|
php artisan {{ "{{ args }}" | raw }}
|
|
{% endif %}
|
|
|
|
_exec +args:
|
|
{{ "docker compose exec {{ args }}" | raw }}
|