From 9c79daaa04d9841c48b500aecea4b455a8c576cf Mon Sep 17 00:00:00 2001 From: gioboa Date: Mon, 21 Oct 2024 10:49:24 +0200 Subject: [PATCH 1/3] feat: add custom Analog.js variant --- packages/create-vite/src/index.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packages/create-vite/src/index.ts b/packages/create-vite/src/index.ts index 96189e9231fff0..f2c9f279c31b7d 100755 --- a/packages/create-vite/src/index.ts +++ b/packages/create-vite/src/index.ts @@ -249,6 +249,19 @@ const FRAMEWORKS: Framework[] = [ }, ], }, + { + name: 'angular', + display: 'Angular', + color: red, + variants: [ + { + name: 'custom-analog-js', + display: 'Analog.js ↗', + color: red, + customCommand: 'npm create analog@latest TARGET_DIR', + }, + ], + }, { name: 'others', display: 'Others', From b15d1c1f97c561337218f725196cd24b7dc42ce0 Mon Sep 17 00:00:00 2001 From: gioboa Date: Mon, 21 Oct 2024 12:31:17 +0200 Subject: [PATCH 2/3] feat: add custom Angular variant --- packages/create-vite/src/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/create-vite/src/index.ts b/packages/create-vite/src/index.ts index f2c9f279c31b7d..a23c3c5f372aaf 100755 --- a/packages/create-vite/src/index.ts +++ b/packages/create-vite/src/index.ts @@ -254,10 +254,16 @@ const FRAMEWORKS: Framework[] = [ display: 'Angular', color: red, variants: [ + { + name: 'custom-angular', + display: 'Angular ↗', + color: red, + customCommand: 'npx -p @angular/cli@latest ng new TARGET_DIR', + }, { name: 'custom-analog-js', display: 'Analog.js ↗', - color: red, + color: yellow, customCommand: 'npm create analog@latest TARGET_DIR', }, ], From ed46fddd13f1a8b51ca2c106bd6b679e77463637 Mon Sep 17 00:00:00 2001 From: Giorgio Boa <35845425+gioboa@users.noreply.github.com> Date: Mon, 21 Oct 2024 15:13:45 +0200 Subject: [PATCH 3/3] chore: change labels --- packages/create-vite/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/create-vite/src/index.ts b/packages/create-vite/src/index.ts index a23c3c5f372aaf..3030634e3187a2 100755 --- a/packages/create-vite/src/index.ts +++ b/packages/create-vite/src/index.ts @@ -261,8 +261,8 @@ const FRAMEWORKS: Framework[] = [ customCommand: 'npx -p @angular/cli@latest ng new TARGET_DIR', }, { - name: 'custom-analog-js', - display: 'Analog.js ↗', + name: 'custom-analog', + display: 'Analog ↗', color: yellow, customCommand: 'npm create analog@latest TARGET_DIR', },