-
Notifications
You must be signed in to change notification settings - Fork 255
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
Refactor getOptions #22
Comments
Very cool project. How would you provide the filepath and verbosity level then? Some signature like |
What I'm thinking is that there will be some new method that will create and return the options object that is configured based solely on |
Grunt can't do command-line options? Everything has to be an environment var? |
Grunt is a command line tool, but the way that it works really makes it so that you don't need to use command line arguments, in fact it would be very confusing. For example, I have a Does that make sense? |
Okay... understood. What if there was an option to use a COVERALLS_LCOV_PATH environment variable that held the file path instead? |
I don't need the path to be set at all and I would rather not have to set an environment variable. Take a look at this code. What I envision is changing that to look something like this: var gruntOptions = grunt.config('coveralls.options');
var coverallsOptions = getBaseOptions();
coverallsOptions.filepath = gruntOptions.filepath; Where Does that make sense? If you'd like, I can submit a PR with what I'm thinking for you to review. |
Resolved by #23 being merged, Thanks! |
Hello,
I have written a wrapper library for
node-coveralls
calledgrunt-karma-coveralls
which provides glue code betweengrunt
,karma
, andnode-coveralls
. To accomplish this I've used thesendToCoveralls
andconvertLcovToCoveralls
functions. One piece that I'm missing is a majority of the logic inside ofgetOptions
. Forgrunt-karma-coveralls
I would like to be able to reuse the contents ofgetOptions
with the exception of the following block of code:Would you be willing to extract a method that would be available for me to call that contains all of the logic in
getOptions
except for the part dealing withprocess.argv
?Thanks!
The text was updated successfully, but these errors were encountered: