-
Notifications
You must be signed in to change notification settings - Fork 2
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
Suggestion: .putdocignore #1
Comments
Thanks for this idea, and for the pull request! Following the .gitignore syntax is reasonable, however, I think it would be better to implement this as .couchappignore (also documented here) instead. I mean not just the format, but also re-use the name. Not only does this help towards compatibility with existing CouchApps, it's defined as:
…so it might not require another dependency, but still be relatively simple to implement inline. What do you think? |
I have no problems with this solution. |
Hoping to tackle it this afternoon. Also found couchapp/couchapp#204 while researching some of the details here (can .couchappignore appear in subfolders? what exactly does it match against?) |
The Python project's handling of .couchappignore is kinda weird to me, it matches in an achored-to-start way, and only against each single path component. This severely limits what it can do, especially compared to the power of gitignore. Here's my plan:
I think this keeps things simple, should be mostly backwards compatible with couchapp in practice, but also adds some putdoc-specific power if people want to use it. (I'm hoping the Python couchapp could follow suit with the "match against relative path" logic.) |
Specifically, this keeps the relative path of files separate from the ddoc_dir root path.
I added .couchappignore support per the comment above. Published as |
It would be nice to have a configuration file
.putdocignore
similar to.gitignore
containing all files and directories to be ignored. I run in trouble e.g. with editor backup files likemyfile.json~
. I suppose that the following package can be used for this task: node-ignore Thanks in advance.The text was updated successfully, but these errors were encountered: