Refactor Server Paradigm.
This commit is contained in:
Vendored
+2
-1
@@ -3,6 +3,7 @@ import AppNames from "./grab-app-names";
|
||||
const prefix = {
|
||||
info: chalk.bgCyan.bold(" ℹnfo "),
|
||||
success: chalk.green.bold("✓"),
|
||||
zap: chalk.green.bold("⚡"),
|
||||
error: chalk.red.bold("✗"),
|
||||
warn: chalk.yellow.bold("⚠"),
|
||||
build: chalk.magenta.bold("⚙"),
|
||||
@@ -16,7 +17,7 @@ export const log = {
|
||||
console.log(`${prefix.success} ${chalk.green(msg)}`, log || "");
|
||||
},
|
||||
error: (msg, log) => console.error(`${prefix.error} ${chalk.red(String(msg))}`, log || ""),
|
||||
warn: (msg) => console.warn(`${prefix.warn} ${chalk.yellow(msg)}`),
|
||||
warn: (msg, log) => console.warn(`${prefix.warn} ${chalk.yellow(msg)}`, log || ""),
|
||||
build: (msg) => console.log(`${prefix.build} ${chalk.magenta(msg)}`),
|
||||
watch: (msg) => console.log(`${prefix.watch} ${chalk.blue(msg)}`),
|
||||
server: (url) => console.log(`${prefix.success} ${chalk.white("Server running on")} ${chalk.cyan.underline(url)}`),
|
||||
|
||||
Reference in New Issue
Block a user