Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Conversation

@walshyb
Copy link
Contributor

@walshyb walshyb commented Nov 22, 2017

I built on @andremalkine 's PR from 2015 which he made in response to an issue he created that asked for a feature to pass options into a filter handler in his gulpfile.

His PR didn't pass the tests for filter options, but I modified his code slightly so that filter handler options are only passed if they are defined.

'The applyFilters method will now check the match for a json object
and, if found, pass it as a secont paramenter in your filter hander.
Useful for stating how you want your filter to address a given include
in the context of the @@include statement itself.' -@andremalkine
@coveralls
Copy link

coveralls commented Nov 22, 2017

Coverage Status

Coverage increased (+0.3%) to 84.08% when pulling 77fbebe on walshyb:master into 6251797 on coderhaoxin:master.

@walshyb
Copy link
Contributor Author

walshyb commented Nov 27, 2017

Wondering if @coderhaoxin or someone else can take a look at this?

@haoxins
Copy link
Owner

haoxins commented Dec 1, 2017

@walshyb can you add a test case for this ?

@walshyb
Copy link
Contributor Author

walshyb commented Dec 1, 2017

Absolutely! I'm not sure I totally understand the structure of the tests, but I'll write one and if it's not in the right place, just let me know

@coveralls
Copy link

coveralls commented Dec 2, 2017

Coverage Status

Coverage increased (+0.3%) to 84.08% when pulling ef2807e on walshyb:master into 6251797 on coderhaoxin:master.

@coveralls
Copy link

coveralls commented Dec 2, 2017

Coverage Status

Coverage increased (+0.3%) to 84.08% when pulling ef2807e on walshyb:master into 6251797 on coderhaoxin:master.

@haoxins haoxins merged commit 5a5f9ca into haoxins:master Dec 3, 2017
@haoxins
Copy link
Owner

haoxins commented Dec 3, 2017

v2.0.0 published :)

@walshyb
Copy link
Contributor Author

walshyb commented Dec 3, 2017

Awesome, thank you so much! :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants