     h.watchFiles glob.globSync("{#{paths.join()}}"), ->
       bundle info
 
-# Compile CoffeeScript source for Node and browsers.
+# Compile source for Node and browsers.
 build = (fn) ->
   info = loadinfo()
   buildNode info, false, ->


# Compile all CoffeeScript sources for Node.
buildNode = (info, watch, fn) ->
  # Calculate path count.
  count = 0
  count++ for _ of info.paths

  # Run a hook before the build process starts.
  info.hookFns.begin?()

  # Iterate through, while counting compiled paths.
  compiled = 0
  for sourcePath, targetPath of info.paths
    do (sourcePath, targetPath) ->
      h.withFiles path.join(sourcePath, '**/*.coffee'), (files) ->

      info.hookFns.bundle? cleanFilename, cleanSource
      fn? clean: cleanSource, ugly: uglySource

# Compile all sources for the browser.
buildBrowser = (info, watch, fn) ->
  bundle info, fn
  if watch
