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
Added support for .xpiignore (at sourceDir) with node-ignore #703
Conversation
Hi @bluejamesbond , thanks for getting in touch about this! I would love to help you land this patch but I think it would be better to approach it like this:
The reason I'm suggesting a command line option instead of a module.exports = {
ignoreFiles: [
'*.zip',
'*.xpi',
]
}; Regardless, we definitely need a command line option first because currently the ignore list isn't configurable from the CLI. |
Your patch would definitely address #131, thanks for getting it started! |
@kumar303 Is the web-ext-config.js file you have in mind a local project file or global? I'm looking for a local .webextignore like .jpmignore |
The |
]); | ||
|
||
if (sourceDir) { | ||
const ignoreFilePath = path.join(sourceDir, '.xpiignore'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't want to torpedo this PR, but something like .webextignore
seems more appropriate to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had little free time last month so I couldn't follow up on this PR. It seems the project is opting for a *.js
file and not using an ignore file I believe. But yes, a .webextignore
is a more apt name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. In special since .xpi ist not anymore the only supported file ending.
By the way, I just remembered that we have a newer active patch for this #753 (perhaps the contributor will be able to land it). Thanks again for helping to kick this off though. |
@kumar303 no problem. My apologies for not catching up. Something other things had come up. |
No worries at all! Thanks for your interest in |
This pull request is just to see if you are interested. I can refractor and add tests as needed.
EDIT:
Another module worth considering you think this feature can be adopted - fsstream-ignore
Fixes #131