🎨 Replace colors module with chalk module
This commit is contained in:
+4
-5
@@ -4,6 +4,7 @@ const helmet = require('helmet')
|
||||
const http = require('http')
|
||||
const colors = require('colors')
|
||||
const path = require('path')
|
||||
const chalk = require('chalk')
|
||||
|
||||
/**
|
||||
* Site class
|
||||
@@ -53,7 +54,7 @@ class Site
|
||||
{
|
||||
if(this.config.debug >= 1)
|
||||
{
|
||||
console.log('site'.green.bold + ' - ' + 'already running'.cyan)
|
||||
console.log(`${chalk.green.bold('site')} - ${chalk.cyan('already running')}`)
|
||||
}
|
||||
|
||||
// Callback
|
||||
@@ -68,7 +69,7 @@ class Site
|
||||
{
|
||||
if(this.config.debug >= 1)
|
||||
{
|
||||
console.log('site'.green.bold + ' - ' + 'unknow error'.cyan)
|
||||
console.log(`${chalk.green.bold('site')} - ${chalk.cyan('unknown error')}`)
|
||||
console.log(error)
|
||||
}
|
||||
|
||||
@@ -86,7 +87,7 @@ class Site
|
||||
// URL
|
||||
if(this.config.debug >= 1)
|
||||
{
|
||||
console.log('site'.green.bold + ' - ' + 'started'.cyan)
|
||||
console.log(`${chalk.green.bold('site')} - ${chalk.cyan('started')}`)
|
||||
}
|
||||
|
||||
if(typeof this.success === 'function')
|
||||
@@ -103,8 +104,6 @@ class Site
|
||||
{
|
||||
this.express.use('/', express.static(path.join(__dirname, '../site/dist')))
|
||||
|
||||
console.log('/' + _project.slug + '/download')
|
||||
|
||||
// Project download route
|
||||
this.express.get('/' + _project.slug + '/download', (request, response) =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user