ericclemmons / grunt-angular-templates

Grunt build task to concatenate & pre-load your AngularJS templates
MIT License
710 stars 107 forks source link

Should be able to exclude files from src. #35

Closed stephennancekivell closed 11 years ago

stephennancekivell commented 11 years ago

You should be able to add paths to ignore to the src option.

For example my project has a a folder app/assets/libs that I want to ignore.

My work around is set src: ['app/A/*/.html', 'app/B/**/.html']. But what want is src: ['!app/assets/_', 'app/_/.html']

Thanks.

ericclemmons commented 11 years ago

Doesn't Grunt support this with its built in Globbing patterns, or are you saying that this plugin somehow doesn't respect it?

ericclemmons commented 11 years ago

One more part, you have to specify the whitelist, then the blacklist (i.e. !app/assets) for this to work.

ericclemmons commented 11 years ago

Closing out this issue. It should be solved in both the complete rewrite and Grunt's existing docs:

https://github.com/ericclemmons/grunt-angular-templates/pull/38 http://gruntjs.com/configuring-tasks#globbing-patterns