mirror of
https://github.com/opdavies/build-configs.git
synced 2025-03-22 20:58:22 +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]);
|
return $next([$configurationData, $configurationDataDto, $filesToGenerate]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: remove?
|
||||||
if ($isDocker) {
|
if ($isDocker) {
|
||||||
$filesToGenerate->push(new TemplateFile(data: 'common/.dockerignore', name: '.dockerignore'));
|
$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: 'common/.hadolint.yaml', name: '.hadolint.yaml'));
|
||||||
$filesToGenerate->push(new TemplateFile(data: 'env.example', name: '.env.example'));
|
$filesToGenerate->push(new TemplateFile(data: 'env.example', name: '.env.example'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: remove?
|
||||||
if ($isFlake) {
|
if ($isFlake) {
|
||||||
$filesToGenerate->push(new TemplateFile(data: 'common/envrc', name: '.envrc'));
|
$filesToGenerate->push(new TemplateFile(data: 'common/envrc', name: '.envrc'));
|
||||||
$filesToGenerate->push(new TemplateFile(data: 'common/flake.nix', name: 'flake.nix'));
|
$filesToGenerate->push(new TemplateFile(data: 'common/flake.nix', name: 'flake.nix'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: remove?
|
||||||
if (false !== Arr::get($configurationData, "justfile", true)) {
|
if (false !== Arr::get($configurationData, "justfile", true)) {
|
||||||
$filesToGenerate[] = new TemplateFile(data: 'justfile', name: 'justfile');
|
$filesToGenerate[] = new TemplateFile(data: 'justfile', name: 'justfile');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: remove?
|
||||||
if (isset($configurationData['dockerCompose']) && $configurationData['dockerCompose'] !== null) {
|
if (isset($configurationData['dockerCompose']) && $configurationData['dockerCompose'] !== null) {
|
||||||
$filesToGenerate[] = new TemplateFile(data: 'docker-compose.yaml', name: 'docker-compose.yaml');
|
$filesToGenerate[] = new TemplateFile(data: 'docker-compose.yaml', name: 'docker-compose.yaml');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: re-add for each project type.
|
||||||
$filesToGenerate[] = new TemplateFile(
|
$filesToGenerate[] = new TemplateFile(
|
||||||
data: 'git-hooks/prepare-commit-msg',
|
data: 'git-hooks/prepare-commit-msg',
|
||||||
name: 'prepare-commit-msg',
|
name: 'prepare-commit-msg',
|
||||||
path: '.githooks',
|
path: '.githooks',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// TODO: re-add for each project type.
|
||||||
if (Arr::get($configurationData, 'experimental.runGitHooksBeforePush', false) === true) {
|
if (Arr::get($configurationData, 'experimental.runGitHooksBeforePush', false) === true) {
|
||||||
$filesToGenerate[] = new TemplateFile(
|
$filesToGenerate[] = new TemplateFile(
|
||||||
data: 'git-hooks/pre-push',
|
data: 'git-hooks/pre-push',
|
||||||
|
|
Loading…
Reference in a new issue