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']);
}
$configurationData['managedText'] = 'Do not edit this file. It is automatically generated by \'build-configs\'.';
$this->generateFiles($configurationData);
return Command::SUCCESS;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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