     watchReporter(event)
     processStatic()
 
+  process.stdin.on 'data', (chunk)->
+    if chunk.toString().replace(/[\r\n]/g, '') in RELOAD_TRIGGERS
+      log('Triggered manual reload', 'red')
+      processJavascripts(watch: true)
+      processStylesheets()
+      processStatic()
+
 gulp.task('default', ['browserify', 'stylus', 'static'])
 gulp.task('build', ['compress'])


  compile = (files)->
    startTime = Date.now()
    watchReporter(path: file, type: 'changed') for file in files if files

    bundler.bundle(debug: config.source_maps)

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

bundler = null # for watchify to avoid memory leaks
lastBrowserified = 0


#=========================================================================================
# Settings
#=========================================================================================
RELOAD_TRIGGERS = ['rs', 'regulp']

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