mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-13 05:26:56 +00:00
chore: rename drupal-project to drupal
This commit is contained in:
parent
b3f61a43da
commit
c68bca3d56
|
@ -100,9 +100,9 @@ final class CreateListOfFilesToGenerate
|
|||
);
|
||||
}
|
||||
|
||||
if ('drupal-project' === Arr::get($configurationData, 'type')) {
|
||||
if ('drupal' === Arr::get($configurationData, 'type')) {
|
||||
// Add a Drupal version of phpunit.xml.dist.
|
||||
$filesToGenerate[] = new TemplateFile(data: 'drupal-project/phpunit.xml.dist', name: 'phpunit.xml.dist');
|
||||
$filesToGenerate[] = new TemplateFile(data: 'drupal/phpunit.xml.dist', name: 'phpunit.xml.dist');
|
||||
}
|
||||
|
||||
if (Arr::get($configurationData, 'experimental.createGitHubActionsConfiguration', false) === true) {
|
||||
|
|
|
@ -54,7 +54,7 @@ final class Config
|
|||
#[Assert\NotBlank]
|
||||
public string $name;
|
||||
|
||||
#[Assert\Choice(choices: ['drupal-project', 'fractal', 'laravel', 'php-library', 'vuejs'])]
|
||||
#[Assert\Choice(choices: ['drupal', 'fractal', 'laravel', 'php-library', 'vuejs'])]
|
||||
#[Assert\NotBlank]
|
||||
public string $type;
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ x-proxy: &default-proxy
|
|||
|
||||
x-app: &default-app
|
||||
volumes:
|
||||
- "${DOCKER_WEB_VOLUME:-./{{ "drupal-project" == type ? drupal.docroot : '' }}:{{ project_root }}{{ "drupal-project" == type ? '/' ~ drupal.docroot : '' }}}"
|
||||
- "${DOCKER_WEB_VOLUME:-./{{ "drupal" == type ? drupal.docroot : '' }}:{{ project_root }}{{ "drupal" == type ? '/' ~ drupal.docroot : '' }}}"
|
||||
env_file:
|
||||
- .env
|
||||
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
|
||||
|
|
|
@ -13,7 +13,7 @@ export COMPOSE_PROFILES=node
|
|||
export DOCKER_WEB_VOLUME=.:{{ project_root }}
|
||||
{% endif %}
|
||||
|
||||
{% if "drupal-project" == type %}
|
||||
{% if "drupal" == type %}
|
||||
{% if experimental.useNewDatabaseCredentials %}
|
||||
export MYSQL_DATABASE=app
|
||||
export MYSQL_PASSWORD=app
|
||||
|
|
|
@ -21,7 +21,7 @@ composer *args:
|
|||
alias phpunit := test
|
||||
|
||||
test *args:
|
||||
{% if "drupal-project" is same as type %}
|
||||
{% if "drupal" is same as type %}
|
||||
{{ "just _exec php phpunit --colors=always {{ args }}" | raw }}
|
||||
{% else %}
|
||||
{{ "just _run php phpunit --colors=always {{ args }}" | raw }}
|
||||
|
@ -31,7 +31,7 @@ test-watch *args:
|
|||
nodemon --ext "*" --watch "." --exec "just test {{ args }} || exit 1" --ignore */sites/simpletest
|
||||
{% endif %}
|
||||
|
||||
{% if "drupal-project" is same as type %}
|
||||
{% if "drupal" is same as type %}
|
||||
drush *args:
|
||||
{{ "just _exec php drush {{ args }}" | raw }}
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{% if type is same as "drupal-project" and "Drupal" in php.phpcs.standards or php.phpcs.standards is empty %}
|
||||
{% if type is same as "drupal" and "Drupal" in php.phpcs.standards or php.phpcs.standards is empty %}
|
||||
<rule ref="Drupal">
|
||||
<exclude name="Drupal.Commenting.ClassComment.Missing"/>
|
||||
<exclude name="Drupal.Commenting.DataTypeNamespace.DataTypeNamespace"/>
|
||||
|
|
Loading…
Reference in a new issue