From c46a9bdb45ecf2be83d885edf9d330449d8dd404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Fri, 22 Nov 2024 11:58:54 +0100 Subject: [PATCH] Add all starters --- app/config/site-templates.php | 75 +++++++++++++++++++++++++++++++---- 1 file changed, 68 insertions(+), 7 deletions(-) diff --git a/app/config/site-templates.php b/app/config/site-templates.php index 8331b115c0..f24f420f90 100644 --- a/app/config/site-templates.php +++ b/app/config/site-templates.php @@ -7,8 +7,59 @@ const TEMPLATE_FRAMEWORKS = [ 'installCommand' => 'npm install', 'buildCommand' => 'npm run build', 'outputDirectory' => './build', - 'serveRuntime' => 'node-22', 'buildRuntime' => 'node-22', + 'serveRuntime' => 'static-1', + 'fallbackFile' => null, + ], + 'NEXTJS' => [ + 'key' => 'nextjs', + 'name' => 'Next.js', + 'installCommand' => 'npm install', + 'buildCommand' => 'npm run build', + 'outputDirectory' => './out', + 'buildRuntime' => 'node-22', + 'serveRuntime' => 'static-1', + 'fallbackFile' => null, + ], + 'NUXT' => [ + 'key' => 'nuxt', + 'name' => 'Nuxt', + 'installCommand' => 'npm install', + 'buildCommand' => 'npm run generate', + 'outputDirectory' => './dist', + 'buildRuntime' => 'node-22', + 'serveRuntime' => 'static-1', + 'fallbackFile' => null, + ], + 'REMIX' => [ + 'key' => 'remix', + 'name' => 'Remix', + 'installCommand' => 'npm install', + 'buildCommand' => 'npm run build', + 'outputDirectory' => './build/client', + 'buildRuntime' => 'node-22', + 'serveRuntime' => 'static-1', + 'fallbackFile' => null, + ], + 'ASTRO' => [ + 'key' => 'astro', + 'name' => 'Astro', + 'installCommand' => 'npm install', + 'buildCommand' => 'npm run build', + 'outputDirectory' => './dist', + 'buildRuntime' => 'node-22', + 'serveRuntime' => 'static-1', + 'fallbackFile' => null, + ], + 'ANGULAR' => [ + 'key' => 'angular', + 'name' => 'Angular', + 'installCommand' => 'npm install', + 'buildCommand' => 'npm run build', + 'outputDirectory' => './dist/starter/browser', + 'buildRuntime' => 'node-22', + 'serveRuntime' => 'static-1', + 'fallbackFile' => null, ], ]; @@ -24,14 +75,24 @@ return [ 'name' => 'Starter website', 'useCases' => ['starter'], 'frameworks' => [ + getFramework('NEXTJS', [ + 'providerRootDirectory' => './nextjs/starter', + ]), + getFramework('NUXT', [ + 'providerRootDirectory' => './nuxt/starter', + ]), getFramework('SVELTEKIT', [ - 'serveRuntime' => 'static-1', - 'installCommand' => 'npm install', - 'buildCommand' => 'npm run build', 'providerRootDirectory' => './sveltekit/starter', - 'outputDirectory' => 'build', - 'fallbackFile' => null - ]) + ]), + getFramework('ASTRO', [ + 'providerRootDirectory' => './astro/starter', + ]), + getFramework('REMIX', [ + 'providerRootDirectory' => './remix/starter', + ]), + getFramework('ANGULAR', [ + 'providerRootDirectory' => './angular/starter', + ]), ], 'vcsProvider' => 'github', 'providerRepositoryId' => 'templates-for-sites',