From ca06b11ff1413ec43a824701549e2134cca7f092 Mon Sep 17 00:00:00 2001 From: ArmorDarks Date: Mon, 6 Apr 2015 18:59:01 +0300 Subject: [PATCH] - [grunt] changes in data will now kick-off re-rendering of all layouts --- gruntfile.coffee | 1 + tasks/grunt-contrib-watch.coffee | 3 +++ 2 files changed, 4 insertions(+) diff --git a/gruntfile.coffee b/gruntfile.coffee index 300d07b4..b8679b88 100644 --- a/gruntfile.coffee +++ b/gruntfile.coffee @@ -23,6 +23,7 @@ module.exports = (grunt) -> path: source: root: 'source' + data: '<%= path.source.root %>/data' fonts: '<%= path.source.root %>/fonts' icons: '<%= path.source.root %>/icons' images: '<%= path.source.root %>/images' diff --git a/tasks/grunt-contrib-watch.coffee b/tasks/grunt-contrib-watch.coffee index 51bed4d0..31fc9b91 100644 --- a/tasks/grunt-contrib-watch.coffee +++ b/tasks/grunt-contrib-watch.coffee @@ -28,6 +28,9 @@ module.exports = -> nunjucksPartials: files: ['<%= path.source.layouts %>{,**/}_*.nj'] tasks: ['nunjucks'] + data: + files: ['<%= path.source.data %>{,**/}*.{json,yml}'] + tasks: ['nunjucks'] images: files: ['<%= path.source.images %>/{,**/}*.{jpg,jpeg,gif,png}'] tasks: ['newer:responsive_images:thumbnails'] \ No newline at end of file