-
Notifications
You must be signed in to change notification settings - Fork 338
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
Ignore files based on VCS ignore files (like .gitignore
) or using a custom ignore files (.wextignore
)
#940
Comments
Hi, thanks for filing the issue. Since we already have an module.exports = {
ignoreFiles: [
'*.data',
'*.pdf',
'...',
],
}; If you take a look at the tracker issue I linked to you will see that config file support is almost ready but currently we don't have someone working on it. If you are able to work on any of the remaining issues I can mentor the work and review patches. Thanks for your interest! |
This is a rather citrical feature in my humble opinion, so I would really love to see some progress on this issue :) |
I agree, sorry about the delay. The config file approach is actually in progress right now. The latest patch is close to landing (see #1080) but there are still a few more that will need to land before the feature is usable. Thanks to @saintsebastian for helping on this! |
Hi, is there any news on this feature? Has it been implemented? |
@mz8i Although not literally the same as the syntax of Example: // web-ext-config.js
module.exports = {
ignoreFiles: [
"web-ext-config.js",
// .. more files here. globs are supported too
],
}; Example: # ls
background.js contentscript.js manifest.json web-ext-config.js
# web-ext build
Applying config files: ~/.web-ext-config.js, ./web-ext-config.js
Building web extension from /tmp/yow
Your web extension is ready: /tmp/example/web-ext-artifacts/name_of_example-1.zip
# unzip -l web-ext-artifacts/name_of_example-1.zip
Archive: web-ext-artifacts/name_of_example-1.zip
Length Date Time Name
--------- ---------- ----- ----
0 2019-05-27 18:00 contentscript.js
0 2019-05-27 18:00 background.js
467 2019-05-27 18:00 manifest.json
--------- -------
467 3 files Note: When the |
Thank you @Rob--W |
@stokito sorry for that. Config files are documented here but they are a generic solution for setting defaults on any option so maybe it wasn't obvious to look there. What part of the docs were you looking in? Maybe we should add an explicit note in --ignore-files? |
Oh, now I see, thank you :) I just didn't get to the bottom of the page. I never created an extension but I already had sources of some extension and I wanted to fix it a little bit and run and test locally. The order in which I learned:
But I saw the |
I still think if I already have the list of files that should be ignored in my By the way, is it possible to specify a different source (i.e. |
Is this a feature request or a bug?
Feature Request
What is the current behavior?
web-ext build
ignores files based on a hard-coded default list and whatever you pass to--ignore-files
.What is the expected or desired behavior?
Ideally the ignore files of different VCS systems (like GIT's
.gitignore
) should be honoured when runningweb-ext build
or (alternatively or additionally)web-ext builld
should read ignore patterns from a separate ignore file (.wextignore
?) and apply those automatically on build as well..
If this is something that
web-ext
will want to support? If so please tell me which way you feel comfortable with and I'll probably implement it.The text was updated successfully, but these errors were encountered: