Function getConfig

  • Reads wp-package.json from the root folder and extracts the value of the --template option or uses the default. The default config is used if no template is provided. Checks if the template file exists and reads it as JSON if it does.

    Parameters

    • args: Argv<object>

      The path to the template file.

    Returns Promise<WPMMconfig>

    The configuration object.

Generated using TypeDoc