@@ -36,13 +36,12 @@ program
3636 . option ( '-w, --watch' , 'watch the directory' , false )
3737 . option ( '-o, --output [output]' , 'output directory' , 'public' )
3838 . option ( '-p, --pages [pages]' , 'pages directory' , 'pages' )
39- . option ( '-i, --info' , 'print option information' , false )
4039 . option ( '--no-csr' , 'no client side routing' )
4140 . option ( '-r --render' , 'pre-render pages' , false )
4241 . action ( async ( source , options ) => {
4342 ( { source, options } = await init_options ( source , options ) ) ;
44- options . info && console . log ( options ) ;
45- build ( options ) ;
43+ options . dev = false ;
44+ await build ( options ) ;
4645 } ) ;
4746
4847program
@@ -51,28 +50,21 @@ program
5150 . option ( '-o, --output [output]' , 'output directory' , 'public' )
5251 . option ( '--no-ssr' , 'disable server side rendering' )
5352 . option ( '--no-save' , 'disable auto save of side rendered pages' )
54- . option ( '-i, --info' , 'print option information' , false )
5553 . action ( async ( source , options ) => {
5654 ( { source, options } = await init_options ( source , options ) ) ;
57- options . info && console . log ( options ) ;
58- // build(options);
5955 server ( options ) ;
6056 } ) ;
6157
6258program
6359 . command ( 'dev [source]' )
6460 . description ( 'launch development server, watch and live reload' )
65- . option ( '-c, --clean' , 'clean the output directory' , false )
6661 . option ( '-o, --output [output]' , 'output directory' , 'public' )
6762 . option ( '-p, --pages [pages]' , 'pages directory' , 'pages' )
68- . option ( '--no-ssr' , 'disable server side rendering' )
69- . option ( '--no-csr' , 'no client side routing' )
7063 . option ( '--no-watch' , 'watch the directory' )
7164 . option ( '--no-live_reload' , 'enable live reload' )
72- . option ( '-i, --info ' , 'print option information' , false )
65+ . option ( '--no-csr ' , 'no client side routing' )
7366 . action ( async ( source , options ) => {
7467 ( { source, options } = await init_options ( source , options ) ) ;
75- options . info && console . log ( options ) ;
7668 options . ssr = false ;
7769 options . save = false ;
7870 options . dev = true ;
0 commit comments