diff --git a/src/Console/Command/BuildConfigurationCommand.php b/src/Console/Command/BuildConfigurationCommand.php index afc5de7..4d83e9b 100644 --- a/src/Console/Command/BuildConfigurationCommand.php +++ b/src/Console/Command/BuildConfigurationCommand.php @@ -117,6 +117,8 @@ final class BuildConfigurationCommand extends Command $this->filesToGenerate->push(['drupal-project/phpunit.xml.dist', 'phpunit.xml.dist']); } + $configurationData['managedText'] = 'Do not edit this file. It is automatically generated by \'build-configs\'.'; + $this->generateFiles($configurationData); return Command::SUCCESS; diff --git a/templates/Dockerfile.twig b/templates/Dockerfile.twig index 3b20ad6..90964a3 100644 --- a/templates/Dockerfile.twig +++ b/templates/Dockerfile.twig @@ -1,3 +1,5 @@ +# {{ managedText | raw }} + FROM php:{{ php.version }} AS base COPY --from=composer:2 /usr/bin/composer /usr/bin/composer diff --git a/templates/docker-compose.yaml.twig b/templates/docker-compose.yaml.twig index d83f224..df8eeb3 100644 --- a/templates/docker-compose.yaml.twig +++ b/templates/docker-compose.yaml.twig @@ -1,3 +1,5 @@ +# {{ managedText | raw }} + x-app: &default-app volumes: - "${DOCKER_WEB_VOLUME:-./{{ drupal.docroot }}:/app/{{ drupal.docroot }}}" diff --git a/templates/drupal-project/phpunit.xml.dist.twig b/templates/drupal-project/phpunit.xml.dist.twig index 4f3a158..e93d134 100644 --- a/templates/drupal-project/phpunit.xml.dist.twig +++ b/templates/drupal-project/phpunit.xml.dist.twig @@ -1,5 +1,5 @@ + - PHPCS configuration file for {{ name }}. diff --git a/templates/php/phpstan.neon.twig b/templates/php/phpstan.neon.twig index 303bd69..2d2fc9f 100644 --- a/templates/php/phpstan.neon.twig +++ b/templates/php/phpstan.neon.twig @@ -1,3 +1,5 @@ +# {{ managedText | raw }} + parameters: level: {{ php.phpstan.level }} paths: diff --git a/templates/php/phpunit.xml.twig b/templates/php/phpunit.xml.twig index de47e44..3a3da89 100644 --- a/templates/php/phpunit.xml.twig +++ b/templates/php/phpunit.xml.twig @@ -1,3 +1,4 @@ +