Remove Astro
This commit is contained in:
parent
98a337bdcd
commit
7bab7e91f4
10 changed files with 2 additions and 187 deletions
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -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([
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ namespace App\Enum;
|
|||
|
||||
enum ProjectType: string
|
||||
{
|
||||
case Astro = 'astro';
|
||||
case Drupal = 'drupal';
|
||||
case Fractal = 'fractal';
|
||||
case Laravel = 'laravel';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue