mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-22 18:27:31 +00:00
chore: add TODOs
This commit is contained in:
parent
783d76fcf5
commit
ef928cbb3a
|
@ -122,32 +122,37 @@ final class CreateListOfFilesToGenerate
|
|||
return $next([$configurationData, $configurationDataDto, $filesToGenerate]);
|
||||
}
|
||||
|
||||
// TODO: remove?
|
||||
if ($isDocker) {
|
||||
$filesToGenerate->push(new TemplateFile(data: 'common/.dockerignore', name: '.dockerignore'));
|
||||
$filesToGenerate->push(new TemplateFile(data: 'common/.hadolint.yaml', name: '.hadolint.yaml'));
|
||||
$filesToGenerate->push(new TemplateFile(data: 'env.example', name: '.env.example'));
|
||||
}
|
||||
|
||||
// TODO: remove?
|
||||
if ($isFlake) {
|
||||
$filesToGenerate->push(new TemplateFile(data: 'common/envrc', name: '.envrc'));
|
||||
$filesToGenerate->push(new TemplateFile(data: 'common/flake.nix', name: 'flake.nix'));
|
||||
}
|
||||
|
||||
// TODO: remove?
|
||||
if (false !== Arr::get($configurationData, "justfile", true)) {
|
||||
$filesToGenerate[] = new TemplateFile(data: 'justfile', name: 'justfile');
|
||||
}
|
||||
|
||||
// TODO: remove?
|
||||
if (isset($configurationData['dockerCompose']) && $configurationData['dockerCompose'] !== null) {
|
||||
$filesToGenerate[] = new TemplateFile(data: 'docker-compose.yaml', name: 'docker-compose.yaml');
|
||||
}
|
||||
|
||||
|
||||
// TODO: re-add for each project type.
|
||||
$filesToGenerate[] = new TemplateFile(
|
||||
data: 'git-hooks/prepare-commit-msg',
|
||||
name: 'prepare-commit-msg',
|
||||
path: '.githooks',
|
||||
);
|
||||
|
||||
// TODO: re-add for each project type.
|
||||
if (Arr::get($configurationData, 'experimental.runGitHooksBeforePush', false) === true) {
|
||||
$filesToGenerate[] = new TemplateFile(
|
||||
data: 'git-hooks/pre-push',
|
||||
|
|
Loading…
Reference in a new issue