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

feat(get-config): add support for defining plugins as an object #2154

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Commits on Sep 27, 2021

  1. feat(get-config): add support for defining plugins as an object

    This implementation allows the plugins to be defined as an object instead of an array. The benefit
    is readability and usability, especially when using yaml format, where empty objects can be left
    out. In Javascript, the benefit is more limited since it is necessary to put in the empty objects,
    but even then the configuration should be more intuitive. This is implemented in backwards
    compatible way, where the original format is still used internally, so nothing should break.
    XC- committed Sep 27, 2021
    Configuration menu
    Copy the full SHA
    33b9060 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2021

  1. docs: update docs to contain examples and documentation on the new pl…

    …ugin object format
    XC- committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    d487dc1 View commit details
    Browse the repository at this point in the history
  2. test: add more tests for normalize-config and run all tests with en_U…

    …S locale
    
    Added tests to check different situations that the normalization function could in the worst case
    encounter. Also added LANG=en_US.UTF-8 in front of the test scripts to guarantee that the tests are
    run using English language locally. Without the variable, yargs will use whatever is set to LANG and
    some tests will fail.
    XC- committed Sep 28, 2021
    Configuration menu
    Copy the full SHA
    98d8fa1 View commit details
    Browse the repository at this point in the history