Skip to content

Commit

Permalink
Delete unnecessary dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jan 26, 2016
1 parent 001ab8e commit 831c4e2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
31 changes: 22 additions & 9 deletions lib/Default.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,24 @@

humanizeMs = require 'ms'
chalk = require 'chalk'
figures = require 'figures'
CONST = require './Constants'
formatUtil = require 'format-util'

figure = do ->
main =
info : ''
success : ''
warning : ''
error : ''

win =
info : 'i'
success : ''
warning : ''
error : '×'

if process.platform is 'win32' then win else main

module.exports =
print: ->
for type of @types
Expand Down Expand Up @@ -74,39 +88,38 @@ module.exports =
types:
line:
color : 'gray'
symbol: ''

error:
level : 0
color : 'red'
symbol: figures.cross
symbol: figure.error

warn:
level : 1
color : 'yellow'
symbol: figures.warning
symbol: figure.warning

success:
level : 2
color : 'green'
symbol: figures.tick
symbol: figure.success

info:
level : 3
color : 'white'
symbol: figures.info
symbol: figure.info

verbose:
level : 4
color : 'cyan'
symbol: figures.info
symbol: figure.info

debug:
level : 5
color : 'blue'
symbol: figures.info
symbol: figure.info

silly:
level : 6
color : 'magenta'
symbol: figures.info
symbol: figure.info
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"chalk": "~1.1.1",
"coffee-script": "~1.10.0",
"existential-assign": "~1.2.2",
"figures": "~1.4.0",
"format-util": "1.0.3",
"ms": "~0.7.1"
},
Expand Down

0 comments on commit 831c4e2

Please sign in to comment.