forked from jroper/sbt-jshint-plugin
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Can't exclude files by directory #14
Comments
Put them in the public folder...? |
Then Concat won't find the files (since they're not under assets). My scenario is to take all the files and concat them into a vendor.js-file. |
Thanks @moatra, your suggestion worked for us. Tough it would be nice to be able to add them just like files. E.g. using a syntax like:
instead of:
|
I used this setting to exclude the public folder
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For files that I can't load from WebJars, I typically commit them to my
assets/javascripts/vendor
directory. Not all of them will pass jshint's tests, so I'd like to exclude them from being linted.I've tried a couple of approaches:
This doesn't work, since the filtering appears to work on file names rather than full paths.
The only thing that seems to work is providing a pattern filter for
excludeFilter
that explicitly enumerates the files contained in the vendor directory, but this is ugly and doesn't scale well.Is there a better option available?
Edit: Researching sbt's file filters further, I came up with the following. Not pretty, but I guess it gets the job done.
The text was updated successfully, but these errors were encountered: