Remove Astro

This commit is contained in:
Oliver Davies 2024-01-21 22:01:49 +00:00
parent 98a337bdcd
commit 7bab7e91f4
10 changed files with 2 additions and 187 deletions

View file

@ -25,16 +25,6 @@ final class CreateListOfFilesToGenerate
$filesToGenerate = collect();
switch (strtolower($configDto->type)) {
case (strtolower(ProjectType::Astro->name)):
$filesToGenerate = collect([
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/run', name: 'run'),
new TemplateFile(data: 'astro/tsconfig.json', name: 'tsconfig.json'),
]);
break;
case (strtolower(ProjectType::Fractal->name)):
$filesToGenerate = collect([
new TemplateFile(data: 'fractal/.gitignore', name: '.gitignore'),

View file

@ -243,7 +243,7 @@ final class ConfigDto
#[Assert\Type('string')]
public string $projectRoot;
#[Assert\Choice(choices: ['astro', 'drupal', 'fractal', 'laravel', 'php-library', 'symfony', 'terraform'])]
#[Assert\Choice(choices: ['drupal', 'fractal', 'laravel', 'php-library', 'symfony', 'terraform'])]
public string $type;
#[Assert\Collection([

View file

@ -6,7 +6,6 @@ namespace App\Enum;
enum ProjectType: string
{
case Astro = 'astro';
case Drupal = 'drupal';
case Fractal = 'fractal';
case Laravel = 'laravel';