   require './' + paths.nodejs
   require './' + 'tmp/deps0.js'
 
-  # For watch mode, run foo_test.js when foo.js is changed.
-  if changedFilePath && !/_test\.js$/.test changedFilePath
-    changedFilePath = changedFilePath.replace '.js', '_test.js'
-
+  # Auto require Closure dependencies for unit test.
   autoRequire = (file) ->
     jsPath = file.path.replace '_test.js', '.js'
     return false if not fs.existsSync jsPath

  options.compilerFlags.externs.push nodeJsExterns...
  compile 'server/app/build', options

gulp.task 'js', (done) ->
  sequence = []
  sequence.push 'deps' if closureDeps.changed changedFilePath


gulp.task 'react', ->
  gulp.src changedFilePath ? paths.react, base: '.'
    .pipe react harmony: true
    .pipe gulp.dest '.'

gulp.task 'deps', ->
