mirror of
https://github.com/opdavies/build-configs.git
synced 2025-02-02 05:47:32 +00:00
parent
34810088c3
commit
fa1774b550
|
@ -115,6 +115,7 @@ final class BuildConfigurationCommand extends Command
|
|||
|
||||
$this->filesToGenerate->push(['env.example', '.env.example']);
|
||||
$this->filesToGenerate->push(['Dockerfile', 'Dockerfile']);
|
||||
$this->filesToGenerate->push(['justfile', 'justfile']);
|
||||
|
||||
if (isset($configurationData['dockerCompose']) && $configurationData['dockerCompose'] !== null) {
|
||||
$this->filesToGenerate->push(['docker-compose.yaml', 'docker-compose.yaml']);
|
||||
|
|
15
templates/justfile.twig
Normal file
15
templates/justfile.twig
Normal file
|
@ -0,0 +1,15 @@
|
|||
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 }}
|
||||
{% endif %}
|
||||
|
||||
_exec +args:
|
||||
{{ "docker compose exec {{ args }}" | raw }}
|
Loading…
Reference in a new issue