mirror of
https://github.com/opdavies/build-configs.git
synced 2025-09-06 11:25:33 +01:00
chore(run): replace justfiles with run files
This commit is contained in:
parent
3a86b4813a
commit
f5a8c691f0
11 changed files with 386 additions and 263 deletions
|
@ -33,7 +33,7 @@ final class CreateListOfFilesToGenerate
|
|||
new TemplateFile(data: 'astro/.envrc', name: '.envrc'),
|
||||
new TemplateFile(data: 'astro/.gitignore', name: '.gitignore'),
|
||||
new TemplateFile(data: 'astro/flake.nix', name: 'flake.nix'),
|
||||
new TemplateFile(data: 'astro/justfile', name: 'justfile'),
|
||||
new TemplateFile(data: 'astro/run', name: 'run'),
|
||||
new TemplateFile(data: 'astro/tsconfig.json', name: 'tsconfig.json'),
|
||||
]);
|
||||
break;
|
||||
|
@ -41,7 +41,7 @@ final class CreateListOfFilesToGenerate
|
|||
case (strtolower(ProjectType::Fractal->name)):
|
||||
$filesToGenerate = collect([
|
||||
new TemplateFile(data: 'fractal/.gitignore', name: '.gitignore'),
|
||||
new TemplateFile(data: 'fractal/justfile', name: 'justfile'),
|
||||
new TemplateFile(data: 'fractal/run', name: 'run'),
|
||||
]);
|
||||
|
||||
if ($isDocker) {
|
||||
|
@ -55,6 +55,14 @@ final class CreateListOfFilesToGenerate
|
|||
$filesToGenerate->push(new TemplateFile(data: 'fractal/.envrc', name: '.envrc'));
|
||||
$filesToGenerate->push(new TemplateFile(data: 'fractal/flake.nix', name: 'flake.nix'));
|
||||
}
|
||||
|
||||
if (Arr::get($configurationData, 'experimental.createGitHubActionsConfiguration', false) === true) {
|
||||
$filesToGenerate[] = new TemplateFile(
|
||||
data: 'fractal/.github/workflows/ci.yml',
|
||||
name: 'ci.yml',
|
||||
path: '.github/workflows',
|
||||
);
|
||||
}
|
||||
break;
|
||||
|
||||
case (strtolower(ProjectType::Drupal->name)):
|
||||
|
@ -65,8 +73,8 @@ final class CreateListOfFilesToGenerate
|
|||
new TemplateFile(data: 'drupal/.hadolint.yaml', name: '.hadolint.yaml'),
|
||||
new TemplateFile(data: 'drupal/Dockerfile', name: 'Dockerfile'),
|
||||
new TemplateFile(data: 'drupal/docker-compose.yaml', name: 'docker-compose.yaml'),
|
||||
new TemplateFile(data: 'drupal/justfile', name: 'justfile'),
|
||||
new TemplateFile(data: 'drupal/phpstan.neon.dist', name: 'phpstan.neon.dist'),
|
||||
new TemplateFile(data: 'drupal/run', name: 'run'),
|
||||
]);
|
||||
|
||||
$extraDatabases = Arr::get($configurationData, 'database.extra_databases', []);
|
||||
|
@ -120,7 +128,7 @@ final class CreateListOfFilesToGenerate
|
|||
case (strtolower(ProjectType::Terraform->name)):
|
||||
$filesToGenerate = collect([
|
||||
new TemplateFile(data: 'terraform/.gitignore', name: '.gitignore'),
|
||||
new TemplateFile(data: 'terraform/justfile', name: 'justfile'),
|
||||
new TemplateFile(data: 'terraform/run', name: 'run'),
|
||||
]);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -59,6 +59,10 @@ final class GenerateConfigurationFiles
|
|||
$this->filesystem->chmod("{$this->outputDir}/.githooks/prepare-commit-msg", 0755);
|
||||
}
|
||||
|
||||
if ($this->filesystem->exists("{$this->outputDir}/run")) {
|
||||
$this->filesystem->chmod("{$this->outputDir}/run", 0755);
|
||||
}
|
||||
|
||||
return $next([$configurationDataDto, $filesToGenerate]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue