linemanjs / lineman-angular-template

A Lineman Application Template using AngularJS
251 stars 88 forks source link

Question: how can I limit expansion of subdirectories for directives and individual views in pages #49

Closed rbutera closed 10 years ago

rbutera commented 10 years ago

I'm pretty bad at understanding how lineman's grunt tasks work, but at the moment I have a lot of html files in app/pages and I would like to organise them into app/templates/ and other subdirectories for related views.

However, when I do so pages:dev simply puts them all into the root of /generated/ - how do I modify it so that files in subdirectories in app/pages/ get placed into a corresponding subdirectory in generated/?

davemo commented 10 years ago

hi @raibutera, right now the pages task does support grabbing pages from within subdirectories as you can see in the default pages config:

$ lineman config files.pages
{
  "source": "app/pages/**/*.*"
}

This sounds like a feature request for lineman that would let you specify if you want the directory tree for app/pages to be expanded in place inside of generated, could you file an issue here requesting the feature? https://github.com/linemanjs/lineman/issues