-
Notifications
You must be signed in to change notification settings - Fork 28
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
Feature request: Ability to exclude files/directories from the archive #8
Comments
This sounds like a good feature. Is this something you'd be up for contributing? We can try and pick it up soon if not. Should be easy to do as we already ignore some files https://github.com/bbc/speculate/blob/master/lib/archiver.js#L9-L11. |
We can pick this up. I'll submit a PR when I get time 👍 |
I am having a look at doing this now it currently uses regex should it extend this in the "spec": {
"exclude": ["pattern_1", "pattern_2"] OR "regex_pattern"
} or did you guys have something else in mind? |
an alternative would be to specifiy what you wanted to package "spec": {
"entries": ["file1", "subdir/file2"]
} and another option read the only and also use the which are all standard npm things people can use also should that regex also include the |
Lets not make it too magic, a simple |
I think it'd be nicer to have Given that, I think we'd only have to implement PRs always welcome 😸 |
I am a fan of project config being put into the package.json, things like That said I haven't pursued it any further, the project I was working that was using this got canned and I don't have time to look into it |
This is now in |
Thanks for the great tool.
It would be great if it was possible to exclude files from being added to the source archive.
The text was updated successfully, but these errors were encountered: