@@ -330,7 +330,7 @@ export class Project {
330
330
const { ssr } = this . config
331
331
const SPAIndexHtml = await this . getSPAIndexHtml ( )
332
332
if ( ssr ) {
333
- log . info ( colors . bold ( ' Pages (SSG)' ) )
333
+ log . info ( colors . bold ( '- Pages (SSG)' ) )
334
334
const paths = new Set ( this . #routing. paths )
335
335
if ( typeof ssr === 'object' && ssr . staticPaths ) {
336
336
ssr . staticPaths . forEach ( path => paths . add ( path ) )
@@ -345,11 +345,11 @@ export class Project {
345
345
const dataFile = path . join ( outputDir , '_aleph/data' , pathname , 'data.js' )
346
346
await writeTextFile ( dataFile , `export default ` + JSON . stringify ( data ) )
347
347
}
348
- log . info ( ' ○' , pathname , colors . dim ( '• ' + util . bytesString ( html . length ) ) )
348
+ log . info ( ' ○' , pathname , colors . dim ( '• ' + util . bytesString ( html . length ) ) )
349
349
} else if ( status == 404 ) {
350
- log . info ( ' ○' , colors . dim ( pathname ) , colors . red ( `Page not found` ) )
350
+ log . info ( ' ○' , colors . dim ( pathname ) , colors . red ( `Page not found` ) )
351
351
} else if ( status == 500 ) {
352
- log . info ( ' ○' , colors . dim ( pathname ) , colors . red ( `Error 505` ) )
352
+ log . info ( ' ○' , colors . dim ( pathname ) , colors . red ( `Error 505` ) )
353
353
}
354
354
}
355
355
} ) )
@@ -387,7 +387,7 @@ export class Project {
387
387
const fi = await Deno . lstat ( p )
388
388
await ensureDir ( path . dirname ( fp ) )
389
389
await Deno . copyFile ( p , fp )
390
- log . info ( ' ✹' , rp , colors . dim ( '•' ) , colorfulBytesString ( fi . size ) )
390
+ log . info ( ' ✹' , rp , colors . dim ( '•' ) , colorfulBytesString ( fi . size ) )
391
391
}
392
392
}
393
393
@@ -424,10 +424,10 @@ export class Project {
424
424
} ) )
425
425
426
426
const { deps, modules, styles } = moduleState
427
- log . info ( colors . bold ( ' Modules' ) )
428
- log . info ( ' {}' , colors . bold ( deps . count . toString ( ) ) , 'deps' , colors . dim ( `• ${ util . bytesString ( deps . bytes ) } (mini, uncompress)` ) )
429
- log . info ( ' {}' , colors . bold ( modules . count . toString ( ) ) , 'modules' , colors . dim ( `• ${ util . bytesString ( modules . bytes ) } (mini, uncompress)` ) )
430
- log . info ( ' {}' , colors . bold ( styles . count . toString ( ) ) , 'styles' , colors . dim ( `• ${ util . bytesString ( styles . bytes ) } (mini, uncompress)` ) )
427
+ log . info ( colors . bold ( '- Modules' ) )
428
+ log . info ( ' {}' , colors . bold ( deps . count . toString ( ) ) , 'deps' , colors . dim ( `• ${ util . bytesString ( deps . bytes ) } (mini, uncompress)` ) )
429
+ log . info ( ' {}' , colors . bold ( modules . count . toString ( ) ) , 'modules' , colors . dim ( `• ${ util . bytesString ( modules . bytes ) } (mini, uncompress)` ) )
430
+ log . info ( ' {}' , colors . bold ( styles . count . toString ( ) ) , 'styles' , colors . dim ( `• ${ util . bytesString ( styles . bytes ) } (mini, uncompress)` ) )
431
431
432
432
log . info ( `Done in ${ Math . round ( performance . now ( ) - start ) } ms` )
433
433
}
@@ -624,33 +624,33 @@ export class Project {
624
624
const { renderPage, renderHead, renderScripts } = await import ( 'file://' + this . #modules. get ( '//deno.land/x/aleph/renderer.js' ) ! . jsFile )
625
625
this . #renderer = { renderPage, renderHead, renderScripts }
626
626
627
- log . info ( colors . bold ( ' Aleph.js' ) )
627
+ log . info ( colors . bold ( ` Aleph.js v ${ version } ` ) )
628
628
if ( this . config . __file ) {
629
- log . info ( colors . bold ( ' Config' ) )
630
- log . info ( ' ⚙️' , this . config . __file )
629
+ log . info ( colors . bold ( '- Config' ) )
630
+ log . info ( ' ⚙️' , this . config . __file )
631
631
}
632
- log . info ( colors . bold ( ' Global' ) )
632
+ log . info ( colors . bold ( '- Global' ) )
633
633
if ( this . #modules. has ( '/app.js' ) ) {
634
- log . info ( ' ✓' , 'Custom App' )
634
+ log . info ( ' ✓' , 'Custom App' )
635
635
}
636
636
if ( this . #modules. has ( '/404.js' ) ) {
637
- log . info ( ' ✓' , 'Custom 404 Page' )
637
+ log . info ( ' ✓' , 'Custom 404 Page' )
638
638
}
639
639
if ( this . #modules. has ( '/loading.js' ) ) {
640
- log . info ( ' ✓' , 'Custom Loading Page' )
640
+ log . info ( ' ✓' , 'Custom Loading Page' )
641
641
}
642
642
643
643
if ( this . isDev ) {
644
644
if ( this . #apiRouting. paths . length > 0 ) {
645
- log . info ( colors . bold ( ' APIs' ) )
645
+ log . info ( colors . bold ( '- APIs' ) )
646
646
}
647
647
for ( const path of this . #apiRouting. paths ) {
648
- log . info ( ' λ' , path )
648
+ log . info ( ' λ' , path )
649
649
}
650
- log . info ( colors . bold ( ' Pages' ) )
650
+ log . info ( colors . bold ( '- Pages' ) )
651
651
for ( const path of this . #routing. paths ) {
652
652
const isIndex = path == '/'
653
- log . info ( ' ○' , path , isIndex ? colors . dim ( '(index)' ) : '' )
653
+ log . info ( ' ○' , path , isIndex ? colors . dim ( '(index)' ) : '' )
654
654
}
655
655
}
656
656
0 commit comments