howardroark / pollinate

Template your base files and generate new projects from Git(Hub).
The Unlicense
225 stars 16 forks source link

Parse all files except specific files/directories #32

Closed matgargano closed 7 years ago

matgargano commented 8 years ago

I'm trying to get Pollinate to work with a WordPress theme that HAS twig files within it that I don't want parsed by Pollinate, they are parsed as part of WordPress, in my project those files are in web/app/themes/template-theme/templates

I tried having the parse array something like this:

   "parse": [
    "*",
    "!web/app/themes/template-theme/templates"
  ],

but that doesn't seem to parse anything... is that a feature that I'm just not entering correctly - or something that would be a feature request?

howardroark commented 7 years ago

OK! You should now be able to do this in 2.1.0 with "glob" patterns..

 "parse": [
    "**",
    "!web/app/themes/template-theme/templates/**"
],

A single "*" path would not include subdirectories

matgargano commented 7 years ago

awesome will give this a go soon i hope!

On Sun, Nov 13, 2016 at 5:01 PM, ☰☱☲☳☴☵☶☷ notifications@github.com wrote:

OK! You should now be able to do this with "glob" patterns..

"parse": [ "", "!web/app/themes/template-theme/templates/" ],

A single "*" path would not include subdirectories

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/howardroark/pollinate/issues/32#issuecomment-260216169, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMCsqRpEy_HHyqx4GONcMzwIf0-2K7Oks5q94jEgaJpZM4KYHME .