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

helpers = require('app/javascripts/shared/helpers')
log = _.bind(helpers.log, logPrefix: '[gulp]')


#=========================================================================================
# Settings
#=========================================================================================
ASSETS_LOCATION = './public/assets'
PUBLIC_LOCATION = './public'
CORE_LOCATION = './app'


  compile = (files)->
    startTime = Date.now()

    return if startTime - lastBrowserified < BROWSERIFY_RATELIMIT
    lastBrowserified = startTime

    watchReporter(path: file, type: 'changed') for file in files if files

    bundler.bundle(debug: config.source_maps)
