feat: add "auto-generated" text to templates

Fixes #21
This commit is contained in:
Oliver Davies 2023-03-08 21:13:28 +00:00
parent d04169a0d8
commit 0fcffc5d2f
12 changed files with 21 additions and 1 deletions

View file

@ -117,6 +117,8 @@ final class BuildConfigurationCommand extends Command
$this->filesToGenerate->push(['drupal-project/phpunit.xml.dist', 'phpunit.xml.dist']); $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); $this->generateFiles($configurationData);
return Command::SUCCESS; return Command::SUCCESS;

View file

@ -1,3 +1,5 @@
# {{ managedText | raw }}
FROM php:{{ php.version }} AS base FROM php:{{ php.version }} AS base
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer COPY --from=composer:2 /usr/bin/composer /usr/bin/composer

View file

@ -1,3 +1,5 @@
# {{ managedText | raw }}
x-app: &default-app x-app: &default-app
volumes: volumes:
- "${DOCKER_WEB_VOLUME:-./{{ drupal.docroot }}:/app/{{ drupal.docroot }}}" - "${DOCKER_WEB_VOLUME:-./{{ drupal.docroot }}:/app/{{ drupal.docroot }}}"

View file

@ -1,5 +1,5 @@
<!-- {{ managedText | raw }} -->
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit <phpunit
beStrictAboutChangesToGlobalState="true" beStrictAboutChangesToGlobalState="true"
beStrictAboutOutputDuringTests="true" beStrictAboutOutputDuringTests="true"

View file

@ -1,3 +1,5 @@
# {{ managedText | raw }}
export DOCKER_UID=1000 export DOCKER_UID=1000
{% if dockerCompose %} {% if dockerCompose %}

View file

@ -1,3 +1,5 @@
# {{ managedText | raw }}
default: default:
@just --list @just --list

View file

@ -1,5 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# {{ managedText | raw }}
[[ -f composer.json && ! -d vendor ]] && composer install [[ -f composer.json && ! -d vendor ]] && composer install
eval "$@" eval "$@"

View file

@ -1,3 +1,4 @@
<!-- {{ managedText | raw }} -->
<?xml version="1.0"?> <?xml version="1.0"?>
<ruleset name="{{ name }} coding standards"> <ruleset name="{{ name }} coding standards">
<description>PHPCS configuration file for {{ name }}.</description> <description>PHPCS configuration file for {{ name }}.</description>

View file

@ -1,3 +1,5 @@
# {{ managedText | raw }}
parameters: parameters:
level: {{ php.phpstan.level }} level: {{ php.phpstan.level }}
paths: paths:

View file

@ -1,3 +1,4 @@
<!-- {{ managedText | raw }} -->
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"

View file

@ -1,3 +1,5 @@
# {{ managedText | raw }}
:80 :80
root * /app/{{ drupal.docroot }} root * /app/{{ drupal.docroot }}
file_server file_server

View file

@ -1,3 +1,5 @@
# {{ managedText | raw }}
server { server {
server_name _; server_name _;