Skip to content

Instantly share code, notes, and snippets.

@simonjefford
Created May 21, 2014 16:22
Show Gist options
  • Save simonjefford/3243b636ec56537a8b67 to your computer and use it in GitHub Desktop.
Save simonjefford/3243b636ec56537a8b67 to your computer and use it in GitHub Desktop.
grunt.registerTask('watchAndBuild', 'watch and build for app changes (with Live Reload)', function() {
this.async();
var leek = require('leek');
var watcher = buildWatcher({
ui: ui,
analytics: leek
});
var opts = {
environment: 'development',
port: 4200,
host: '0.0.0.0',
project: project,
watcher: watcher,
liveReload: true,
liveReloadPort: 35729
};
livereload.ui = ui;
livereload.analytics = leek;
livereload.start(opts).then(function(res) { console.log("Result ", res)}, function(err) { console.log(err) });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment