pages
Version:
AngularJS / Node.js sidekick.
27 lines (15 loc) • 563 B
text/coffeescript
notify = require '../../lib/notify'
log = require '../../lib/log'
## Public API ##
module.exports =
coffee:
data: (data) -> if data.indexOf('error') isnt -1 then notify('CoffeeScript Error', data)
jade:
error: (error) ->
error = error.replace(/\r\n\r\n/g, '')
notify 'Jade Error', error if !/^\s*$/.test error
compiler:
data: (data) -> console.log data
error: (error) ->
notify 'Pages Error', error
log.err compiler: error