Skip to content

Commit ac1fd41

Browse files
authoredOct 21, 2024
feat: add custom Angular variants (#18410)
1 parent dbb2604 commit ac1fd41

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
 

‎packages/create-vite/src/index.ts

+19
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,25 @@ const FRAMEWORKS: Framework[] = [
249249
},
250250
],
251251
},
252+
{
253+
name: 'angular',
254+
display: 'Angular',
255+
color: red,
256+
variants: [
257+
{
258+
name: 'custom-angular',
259+
display: 'Angular ↗',
260+
color: red,
261+
customCommand: 'npx -p @angular/cli@latest ng new TARGET_DIR',
262+
},
263+
{
264+
name: 'custom-analog',
265+
display: 'Analog ↗',
266+
color: yellow,
267+
customCommand: 'npm create analog@latest TARGET_DIR',
268+
},
269+
],
270+
},
252271
{
253272
name: 'others',
254273
display: 'Others',

0 commit comments

Comments
 (0)
Please sign in to comment.