closure-util
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -0,1 +1,3 @@ | ||
var log = require('npmlog'); | ||
var Manager = require('./lib/manager').Manager; | ||
@@ -5,4 +7,6 @@ var Server = require('./lib/server').Server; | ||
exports.Manager = Manager; | ||
exports.Server = Server; | ||
exports.compile = compile; | ||
exports.log = log; |
@@ -7,2 +7,3 @@ var EventEmitter = require('events').EventEmitter; | ||
var Gaze = require('gaze').Gaze; | ||
var log = require('npmlog'); | ||
@@ -88,2 +89,3 @@ var globs = require('./util').globs; | ||
if (err) { | ||
log.verbose('manager', err); | ||
this.emit('error', err); | ||
@@ -256,7 +258,12 @@ } else { | ||
Manager.prototype._handleChanged = function(filepath) { | ||
var old = this._scripts[filepath]; | ||
var lib = old.lib; | ||
var self = this; | ||
scripts.read(filepath, function(err, script) { | ||
script.lib = lib; | ||
if (err) { | ||
log.verbose('manager', err); | ||
return self.emit('error', err); | ||
} | ||
log.verbose('manager', 'updated ' + filepath); | ||
delete self._scripts[filepath]; | ||
@@ -276,3 +283,4 @@ self._addScript(script); | ||
this._dependencies = {}; | ||
log.verbose('manager', 'deleted ' + filepath); | ||
this.emit('update'); | ||
}; |
{ | ||
"name": "closure-util", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Utilities for Closure Library based projects.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
43105
1308