Skip to content

Instantly share code, notes, and snippets.

@ciembor
Created September 24, 2013 14:54
Show Gist options
  • Select an option

  • Save ciembor/6685974 to your computer and use it in GitHub Desktop.

Select an option

Save ciembor/6685974 to your computer and use it in GitHub Desktop.
// config.js
var watcher = new TimeWatcher();
var refresh = new RefreshAction();
watcher.onPeriod(5, refresh);
// auster.js
var FsWatcher = require('./watchers/FsWatcher.js');
var TimeWatcher = require('./watchers/TimeWatcher.js');
var RefreshAction = require('./actions/RefreshAction.js');
var fs = require('fs');
eval(fs.readFileSync(process.argv[2])+'');⏎
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment