Skip to content

Commit b88f7cc

Browse files
authored
Merge pull request #240 from zbennett10/master
removed deprecated gulp-util
2 parents d6219c3 + ddf0ee6 commit b88f7cc

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@
4343
"server"
4444
],
4545
"dependencies": {
46+
"ansi-colors": "^1.0.1",
4647
"connect": "^2.30.0",
4748
"connect-livereload": "^0.5.4",
4849
"event-stream": "^3.3.2",
49-
"gulp-util": "^3.0.6",
50+
"fancy-log": "^1.3.2",
5051
"send": "^0.13.2",
5152
"tiny-lr": "^0.2.1"
5253
},

src/index.coffee

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
path = require("path")
2+
fancyLog = require("fancy-log")
3+
colors = require("ansi-colors")
24
es = require("event-stream")
3-
util = require("gulp-util")
45
http = require("http")
56
https = require("https")
67
fs = require("fs")
@@ -142,15 +143,15 @@ class ConnectApp
142143

143144
log: (text) ->
144145
if !@silent
145-
util.log util.colors.green(text)
146+
fancyLog colors.green(text)
146147

147148
logWarning: (text) ->
148149
if !@silent
149-
util.log util.colors.yellow(text)
150+
fancyLog colors.yellow(text)
150151

151152
logDebug: (text) ->
152153
if @debug
153-
util.log util.colors.blue(text)
154+
fancyLog colors.blue(text)
154155

155156
oldMethod: (type) ->
156157
text = 'does not work in gulp-connect v 2.*. Please read "readme" https://github.com/AveVlad/gulp-connect'

0 commit comments

Comments
 (0)