             # Write to the .livereload file when nodemon restarts the server
             nodemon.on "restart", ->
               setTimeout (->
-                require("fs").writeFileSync ".livereload", "K"
+                fs.writeFileSync ".livereload", "K"
                 return
               ), 1000
               return

module.exports = (grunt) ->
  grunt.initConfig(
    coffee:

  grunt.loadNpmTasks "grunt-contrib-watch"
  grunt.loadNpmTasks "grunt-concurrent"

  grunt.registerTask "forceReload", null, ->
    setTimeout (->
      fs.writeFileSync ".livereload", "K"
      return
    ), 1500
    return

  grunt.registerTask("compile", ["stylus", "coffee", "forceReload"])
  grunt.registerTask("default", ["compile", "concurrent"])

  return
