 JS_TRANSFORMS = ['coffeeify', 'jadeify', 'browserify-shim']
 MINIFIED_NAME = suffix: '.min'
 
+BROWSERIFY_RATELIMIT = 1000
+
 
 #=========================================================================================
 # Reporters

# Compilers
#=========================================================================================
compileJavascripts = (src, options)->
  args = [src, extensions: ['.coffee', '.jade']]
  bundler = if options.watch then watchify(args...) else browserify(args...)



  processJavascripts(watch: true)
  processStylesheets()
  processStatic()

  # FIXME: This reload method is really slow
  templates = [
    "#{APP_LOCATION}/templates/**/*.jade"
    "!#{APP_LOCATION}/templates/static/**/*.jade"
  ]
  gulp.watch(templates).on 'change', (event)->
    watchReporter(event)
    processJavascripts(watch: true)

  stylesheets = [
    "#{CORE_LOCATION}/stylesheets/**/*.styl"
