-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile doesn’t ignore www/ #307
Comments
Is the idea that harp is not meant to be used as a "root-style" app? I notice that when I run Is the only way to avoid this to keep my harp app nested one folder deep within my project? |
I am also irked that my .git folder is ending up in www. There are a lot of ways in which the "root style" is more natural 🐘, but root style apps at the top level of a git or mercurial repo are broken. I appreciate the strong convention over configuration stance, but it really seems like an ignore key is needed in 🐘
|
If |
Here is the line that is happening. Line 315 in 7a09952
There is really no reason to compile that regex for every file. |
Added failing tests for omitting |
Thanks @edrex! Very helpful. |
I can take a crack at fixing. Is processing |
Seems like adding the .git pattern to terraform.helpers.shouldIgnore would work. For the output dir, harp should be smart enough to ignore a user-specified output dir if it is in the project dir. |
@silentrob I think that check is about preserving a |
Is there any need for "dot files" to ever end up in the compiled output? I guess |
also |
Ok so I pushed some harp tests that more specifically target the problem behavior. When
2 is a bug, fixed in sintaxi/terraform#84 Also included a test that Possibly, harp should add a check to see if a target file is under Ready for review. |
Root-style apps with a compile
www/
directory will have thewww/
compiled within it then next time, until Harp finally throws an error. Eventually, you can end up withwww/www
until you get:The text was updated successfully, but these errors were encountered: