Jacky Zhao
2023-07-20 01d7d8e55448abe0a929d8730c735bed5d929048
quartz/build.ts
@@ -61,7 +61,11 @@
        directoryListing: false,
      })
      const status = res.statusCode
      const statusString = status === 200 ? chalk.green(`[${status}]`) : chalk.red(`[${status}]`)
      const statusString = (status >= 200 && status < 300) ?
        chalk.green(`[${status}]`) :
        (status >= 300 && status < 400) ?
        chalk.yellow(`[${status}]`) :
        chalk.red(`[${status}]`)
      console.log(statusString + chalk.grey(` ${req.url}`))
    })
    server.listen(argv.port)