Ability to provide CLI params as config #507
Unanswered
drjonnicholson
asked this question in
Ideas
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Idea
Allow all parameters to be defined in the config file, allowing them to be dynamically defined, but still be overridden by the CLI.
Current state
It looks like there are currently options that can only be passed through the CLI. For example, reporters appears to only take configuration from the CLI options.
Example use case
To be able to define reporters in the config, making use of javascript to help define values. Consider a lage.config.js like this where i've put
reporter
andgrouped
in the root as an example:With the package.json like:
Then:
npm run lint
on my local I want to see the npmLog reporternpm run lint
on my Azure DevOps Pipeline ( or manually withCI=true npm run lint
) I should see output from the azureDevops reporternpm run lint -- --reporter=json
anywhere then I expect the report output to be in JSON formatBeta Was this translation helpful? Give feedback.
All reactions