Skip to content

Commit 3cc30b8

Browse files
committed
Logging tweaks
* Make workshop URL prettier :) * Remove stray console.log
1 parent 7476e18 commit 3cc30b8

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

exercises/03-intro-3/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ module.exports = function(sourceFiles) {
99
envify.push('--dirname', path.basename(__dirname))
1010
sourceFiles.forEach(function(file) {
1111
var base = path.basename(file).replace(/\./g, '_')
12-
console.log(base)
1312
envify.push('--file_' + base)
1413
envify.push(file)
1514
})

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var exercises = require('./exercises')
77
var styles = require('./style')
88
var opener = require('opener')
99
var beefy = require('beefy')
10+
var chalk = require('chalk')
1011
var http = require('http')
1112
var path = require('path')
1213
var url = require('url')
@@ -92,9 +93,8 @@ function createServer(root) {
9293

9394
var url = 'http://localhost:'+mainPort
9495
opener(url)
95-
console.log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
96-
console.log('WORKSHOP URL:', url)
97-
console.log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
96+
console.log(chalk.yellow('WORKSHOP URL:'), chalk.underline.blue(url))
97+
console.log()
9898
})
9999
}
100100
}

0 commit comments

Comments
 (0)