]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Add watch task for docs dev
authorEric Morris <eric@zurb.com>
Wed, 30 Oct 2013 18:08:57 +0000 (11:08 -0700)
committerEric Morris <eric@zurb.com>
Wed, 30 Oct 2013 18:08:57 +0000 (11:08 -0700)
Gruntfile.js
package.json

index 1008f15fcb594610ea4a1f39e053e029cf482d79..2bf585205893b232145d5ce88fda64cbd3fd0579 100644 (file)
@@ -84,12 +84,21 @@ module.exports = function(grunt) {
           'Say "Deploy Completed"'
         ].join('&&')
       }
-    }
+    },
+    watch: {
+      docs: {
+        files: ['docs/docs.php', 'docs/**/*.html'],
+        tasks: ['shell:makeStage', 'shell:testDocs', 'includes:docs'],
+        options: {
+          livereload: true,
+        },
+      },
+    },
   });
 
   grunt.loadNpmTasks('grunt-includes');
   grunt.loadNpmTasks('grunt-shell');
-
+  grunt.loadNpmTasks('grunt-contrib-watch');
 
   grunt.registerTask('make:templates', ['includes:templates', 'shell:zipTemplates']);
   grunt.registerTask('deploy:downloads', ['shell:makeStage', 'includes:templates', 'shell:zipTemplates', 'shell:zipFramework', 'shell:linkFramework', 'shell:deployDownloads', 'shell:cleanUp']);
index 106b7dbed4f5c6494667ae88fac98d207d36c423..2b8776d8449029320ff25821b2419d66d5b66df7 100644 (file)
@@ -11,7 +11,8 @@
   },
   "devDependencies": {
     "grunt-includes": "~0.3.5",
-    "grunt-shell": "~0.5.0"
+    "grunt-shell": "~0.5.0",
+    "grunt-contrib-watch": "~0.5.3"
   },
   "repository": {
     "type": "git",