File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,18 @@ export const createSolid = (version: string) =>
5353 alias : "s" ,
5454 description : "Create a SolidStart project" ,
5555 } ,
56+ "library" : {
57+ type : "boolean" ,
58+ required : false ,
59+ alias : "l" ,
60+ description : "Create a Library project" ,
61+ } ,
62+ "vanilla" : {
63+ type : "boolean" ,
64+ required : false ,
65+ alias : "v" ,
66+ description : "Create a vanilla (SolidJS + Vite) project" ,
67+ } ,
5668 "ts" : {
5769 type : "boolean" ,
5870 required : false ,
@@ -71,14 +83,16 @@ export const createSolid = (version: string) =>
7183 "project-name" : projectNameOptional ,
7284 "template" : templateOptional ,
7385 solidstart,
86+ library,
87+ vanilla,
7488 ts,
7589 js,
7690 } ,
7791 } ) {
7892 // Show prompts for any unknown arguments
7993 let projectName : string = projectNamePositional ?? projectNameOptional ;
8094 let template : string = templatePositional ?? templateOptional ;
81- let projectType : ProjectType | undefined = solidstart ? "start" : undefined ;
95+ let projectType : ProjectType | undefined = solidstart ? "start" : ( vanilla ? "vanilla" : ( library ? "library" : undefined ) ) ;
8296 // False if user has selected ts, true if they have selected js, and undefined if they've done neither
8397 let useJS = ts ? ! ts : js ? js : undefined ;
8498 projectName ??= await cancelable (
You can’t perform that action at this time.
0 commit comments