From 6d8447c7068c3fd9cea36358e25fbd258a35787c Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Fri, 18 Jul 2014 16:23:26 -0700 Subject: [PATCH] Fixed template inclusion for nested templates. Nested templates were not being included in the template manifest, because the ** selector apparently ignores slashes under some circumstances. This fixes the issue, and also sets up a watch target that matches the actual template-to-js command. Change-Id: I86b13dfb16e21cc81cb391a82e7ccb63550dbb11 --- Gruntfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 9ffe3269..df990ed0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -213,7 +213,7 @@ module.exports = function (grunt) { base: dir.source }, main: { - src: [dir.source + '/app/*/template/**.html'], + src: [dir.source + '/app/*/template/**/**.html'], dest: dir.output + '/js/templates.js' } }, @@ -424,7 +424,7 @@ module.exports = function (grunt) { }, templates: { files: [ - dir.source + '/app/**/*.html' + dir.source + '/app/*/template/**/**.html' ], tasks: ['html2js'] },