karlgoldstein/grunt-html2js — pull request #1 by ajoslin (2013-03-10 16:47:10+00:00)
Title: Make it build even if no templates exist

I don't really see the point of the check to see if any files exist before building the module.

When I have a new app using html2js in the build step, there are no templates yet. But I still want to include "templates-app" as a dependency in my angular module. With it not building the module if no templates exist, though, templates-app module is never declared and I get an error.

This makes it a bit easier to get started. It will just declare an empty module if there are no templates.

I realize I could just create an empty test template, but why make the user go to that trouble?