Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit ff14625

Browse files
author
Je
committed
refactor: update printing of project info
1 parent d9061e4 commit ff14625

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

project.ts

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -446,13 +446,27 @@ export class Project {
446446
}
447447
await this._createMainModule()
448448

449-
log.info(colors.bold('Pages'))
449+
log.info(colors.bold('Aleph.js'))
450+
log.info(colors.bold(' Pages'))
450451
for (const path of this.#routing.paths) {
451452
const isIndex = path == '/'
452-
log.info('○', path, isIndex ? colors.dim('(index)') : '')
453+
log.info(' ○', path, isIndex ? colors.dim('(index)') : '')
454+
}
455+
if (this.#apiRouting.paths.length > 0) {
456+
log.info(colors.bold(' APIs'))
453457
}
454458
for (const path of this.#apiRouting.paths) {
455-
log.info('λ', path)
459+
log.info(' λ', path)
460+
}
461+
log.info(colors.bold(' Config'))
462+
if (this.#modules.has('/data.js')) {
463+
log.info(' ✓', 'Global Static Data')
464+
}
465+
if (this.#modules.has('/app.js')) {
466+
log.info(' ✓', 'Custom App')
467+
}
468+
if (this.#modules.has('/404.js')) {
469+
log.info(' ✓', 'Custom 404 Page')
456470
}
457471

458472
if (this.isDev) {

0 commit comments

Comments
 (0)