🎨 Replace colors module with chalk module
This commit is contained in:
+5
-4
@@ -6,6 +6,7 @@ const JSZip = require('jszip')
|
||||
const glob = require('glob')
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const chalk = require('chalk')
|
||||
|
||||
class Project
|
||||
{
|
||||
@@ -50,7 +51,7 @@ class Project
|
||||
// Debug
|
||||
if(this.config.debug >= 1)
|
||||
{
|
||||
console.log('project > socket'.green.bold + ' - ' + 'connection'.cyan + ' - ' + socket.id.cyan)
|
||||
console.log(`${chalk.green.bold('project > socket')} - ${chalk.cyan('connection')} - ${chalk.cyan(socket.id)}`)
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -63,7 +64,7 @@ class Project
|
||||
// Debug
|
||||
if(this.config.debug >= 1)
|
||||
{
|
||||
console.log('project > zip'.green.bold + ' - ' + 'from cache'.cyan)
|
||||
console.log(`${chalk.green.bold('project > zip')} - ${chalk.cyan('from cache')}`)
|
||||
}
|
||||
|
||||
return this.zipBuffer
|
||||
@@ -96,7 +97,7 @@ class Project
|
||||
// Debug
|
||||
if(this.config.debug >= 1)
|
||||
{
|
||||
console.log('project > zip'.green.bold + ' - ' + 'create'.cyan)
|
||||
console.log(`${chalk.green.bold('project > zip')} - ${chalk.cyan('create')}`)
|
||||
}
|
||||
|
||||
return this.zipBuffer
|
||||
@@ -106,7 +107,7 @@ class Project
|
||||
*/
|
||||
addTestContents()
|
||||
{
|
||||
console.log('project'.green.bold + ' - ' + 'add test contents'.cyan)
|
||||
console.log(`${chalk.green.bold('project')} - ${chalk.cyan('add test content')}`)
|
||||
|
||||
// Add some with true contents
|
||||
this.files.createVersion('./test/file.css', `body {
|
||||
|
||||
Reference in New Issue
Block a user