From f5803212e52938f3978563fd22be00a57af9c3e1 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sun, 24 Sep 2023 18:55:06 +0100 Subject: [PATCH] refactor(astro): move projects into a language ...directory --- src/Action/CreateListOfFilesToGenerate.php | 6 +++--- templates/astro/{ => typescript}/.envrc.twig | 0 templates/astro/{ => typescript}/flake.nix.twig | 0 templates/astro/{ => typescript}/tsconfig.json.twig | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename templates/astro/{ => typescript}/.envrc.twig (100%) rename templates/astro/{ => typescript}/flake.nix.twig (100%) rename templates/astro/{ => typescript}/tsconfig.json.twig (100%) diff --git a/src/Action/CreateListOfFilesToGenerate.php b/src/Action/CreateListOfFilesToGenerate.php index fd16c20..3bde520 100644 --- a/src/Action/CreateListOfFilesToGenerate.php +++ b/src/Action/CreateListOfFilesToGenerate.php @@ -28,9 +28,9 @@ final class CreateListOfFilesToGenerate switch (strtolower($configurationDataDto->type)) { case (strtolower(ProjectType::Astro->name)): $filesToGenerate = collect([ - ['astro/.envrc', '.envrc'], - ['astro/flake.nix', 'flake.nix'], - ['astro/tsconfig.json', 'tsconfig.json'], + ['astro/typescript/.envrc', '.envrc'], + ['astro/typescript/flake.nix', 'flake.nix'], + ['astro/typescript/tsconfig.json', 'tsconfig.json'], ])->map(function (array $file) { return new TemplateFile( data: $file[0], diff --git a/templates/astro/.envrc.twig b/templates/astro/typescript/.envrc.twig similarity index 100% rename from templates/astro/.envrc.twig rename to templates/astro/typescript/.envrc.twig diff --git a/templates/astro/flake.nix.twig b/templates/astro/typescript/flake.nix.twig similarity index 100% rename from templates/astro/flake.nix.twig rename to templates/astro/typescript/flake.nix.twig diff --git a/templates/astro/tsconfig.json.twig b/templates/astro/typescript/tsconfig.json.twig similarity index 100% rename from templates/astro/tsconfig.json.twig rename to templates/astro/typescript/tsconfig.json.twig