Skip to content
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

pretty-config: add support for passing array of names #129

Open
tunnckoCore opened this issue Feb 9, 2018 · 1 comment
Open

pretty-config: add support for passing array of names #129

tunnckoCore opened this issue Feb 9, 2018 · 1 comment
Labels
good first issue Good for newcomers and first-timer contributors Priority: Medium This issue may be useful, and needs some attention. Status: Available No one has claimed for resolving this issue. Generally applied to bugs and enhancement issues. Status: Proposal Type: Enhancement Most issues will probably be for additions or changes. Expected that this will result in a PR.

Comments

@tunnckoCore
Copy link
Owner

Which will behave like that

let settings = await prettyConfig('rollup', { configFiles })

if (!settings) {
  settings = await prettyConfig('rolldown', { configFiles })
}
console.log(settings)

instead of above we can hide it to look like that

const settings = await prettyConfig(['rollup', 'rolldown'], { configFiles })

if (!settings) {
  console.log('no config files found for `rollup` and `rolldown` tools')
}
@tunnckoCore tunnckoCore transferred this issue from another repository Mar 16, 2020
@auto-comment
Copy link

auto-comment bot commented Mar 16, 2020

Thank you for raising this issue! We will try and get back to you as soon as possible.
Please make sure you format it properly, followed our code of conduct, and have given us as much context as possible.
Hey @tunnckoCore, check out this one too! ;)

@tunnckoCore tunnckoCore changed the title add support for passing array of names pretty-config: add support for passing array of names Mar 16, 2020
@tunnckoCore tunnckoCore added good first issue Good for newcomers and first-timer contributors Priority: Medium This issue may be useful, and needs some attention. Status: Available No one has claimed for resolving this issue. Generally applied to bugs and enhancement issues. Status: Proposal Type: Enhancement Most issues will probably be for additions or changes. Expected that this will result in a PR. labels Mar 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers and first-timer contributors Priority: Medium This issue may be useful, and needs some attention. Status: Available No one has claimed for resolving this issue. Generally applied to bugs and enhancement issues. Status: Proposal Type: Enhancement Most issues will probably be for additions or changes. Expected that this will result in a PR.
Projects
None yet
Development

No branches or pull requests

1 participant