feat(gitignore): add additional ignored paths

This commit is contained in:
Oliver Davies 2023-10-18 20:54:36 +02:00
parent 696aa5d617
commit 02774b820b
5 changed files with 30 additions and 0 deletions

View file

@ -60,5 +60,19 @@ final class Config
#[Assert\NotBlank] #[Assert\NotBlank]
public ?string $projectRoot; public ?string $projectRoot;
#[Assert\Collection(
allowExtraFields: false,
fields: [
'ignore' => new Assert\Optional([
new Assert\Type('array'),
new Assert\Count(['min' => 1]),
new Assert\All([
new Assert\Type('string'),
])
])
]
)]
public array $git;
public array $php; public array $php;
} }

View file

@ -10,3 +10,7 @@ npm-debug.log*
pnpm-debug.log* pnpm-debug.log*
yarn-debug.log* yarn-debug.log*
yarn-error.log* yarn-error.log*
{% for path in git.ignore %}
{{ path }}
{% endfor %}

View file

@ -40,3 +40,7 @@ vendor/
.env .env
docker-compose.override.yaml docker-compose.override.yaml
{% endif %} {% endif %}
{% for path in git.ignore %}
{{ path }}
{% endfor %}

View file

@ -7,3 +7,7 @@ node_modules
.env .env
docker-compose.override.yaml docker-compose.override.yaml
{% endif %} {% endif %}
{% for path in git.ignore %}
{{ path }}
{% endfor %}

View file

@ -43,3 +43,7 @@ override.tf.json
terraform.rc terraform.rc
# End of https://www.toptal.com/developers/gitignore/api/terraform # End of https://www.toptal.com/developers/gitignore/api/terraform
{% for path in git.ignore %}
{{ path }}
{% endfor %}