Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bugfix - unable to log in watch mode.

  • Loading branch information...
commit 6fcb362e07b864dbed84abaee6fff19338b7acd4 1 parent 2046dbe
@hiddentao authored
Showing with 5 additions and 3 deletions.
  1. +1 −1  package.json
  2. +4 −2 src/weber.coffee
View
2  package.json
@@ -2,7 +2,7 @@
"author": "Ramesh Nair <ram@hiddentao.com> (http://hiddentao.com)",
"name": "weber",
"description": "A tool for compiling scripts, stylesheets and templates when developing Javascript web apps.",
- "version": "1.0.4",
+ "version": "1.0.5",
"homepage": "https://github.com/hiddentao/weber",
"licenses":
[{
View
6 src/weber.coffee
@@ -75,6 +75,8 @@ class Weber
watch: ->
@build(false)
+ logger = @logger
+
for urlpath, options of @options.js
all_inputs = [].concat options.lib, options.module
for f in all_inputs
@@ -82,7 +84,7 @@ class Weber
continue unless path.existsSync(f)
( (buildConfig, fileToWatch) =>
fs.watch fileToWatch, (e,f) =>
- @logger.debug "File changed: #{f}, rebuilding #{buildConfig.build}"
+ logger.debug "File changed: #{f}, rebuilding #{buildConfig.build}"
fs.writeFileSync(buildConfig.build, js.createPackage(buildConfig).compile())
)(options, f)
@@ -92,7 +94,7 @@ class Weber
continue unless path.existsSync(f)
( (buildConfig, fileToWatch) ->
fs.watch fileToWatch, (e,f) ->
- @logger.debug "File changed: #{f}, rebuilding #{buildConfig.build}"
+ logger.debug "File changed: #{f}, rebuilding #{buildConfig.build}"
fs.writeFileSync(buildConfig.build, css.createPackage(buildConfig).compile())
)(options, f)
Please sign in to comment.
Something went wrong with that request. Please try again.