This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

updated config

  • Loading branch information...
1 parent d77f9bf commit a870be22df713aeef55b07fe97782495708ffed2 @jgallen23 committed Dec 13, 2012
Showing with 11 additions and 10 deletions.
  1. +7 −6 Gruntfile.js
  2. +4 −4 tasks/reloadr.js
View
@@ -30,12 +30,13 @@ module.exports = function(grunt) {
// Configuration to be run (and then tested).
reloadr: {
- main: {
- watch: [
- 'test/**/*',
- 'tasks/*.js'
- ]
- }
+ main: [
+ 'test/**/*',
+ 'tasks/*.js'
+ ],
+ all: [
+ '**/*'
+ ]
},
// Unit tests.
View
@@ -20,13 +20,13 @@ module.exports = function(grunt) {
var self = this;
var done = this.async();
- if (typeof this.data.watch == 'string') {
- this.data.watch = [this.data.watch];
+ if (typeof this.data == 'string') {
+ this.data = [this.data];
}
- reloadr.start(this.data.watch, function() {
+ reloadr.start(this.data, function() {
grunt.log.writeln('LiveReload server started');
- grunt.log.writeln('Watching: '+self.data.watch.join(', '));
+ grunt.log.writeln('Watching: '+self.data.join(', '));
});
reloadr.changed(function(filepath) {

0 comments on commit a870be2

Please sign in to comment.