Created
May 21, 2014 16:22
-
-
Save simonjefford/3243b636ec56537a8b67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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