Skip to content

Add flag to generate a "defaults" configuration file #15

@zoe-codez

Description

@zoe-codez

Add the ability to generate a "defaults" configuration file via boilerplate.BUILD_DEFAULT_CONFIG. This will build a valid configuration file with all configuration properties in it. The value for everything should be the module defined defaults, ignoring any others

Must display all help text, enums, type information, required state in the file

Activate

  • --build-default-config - output at ./.{appname} in ini format
  • --build-default-config ./output - output at the target file
# example usage
node dist/my_app.js --build-default-config ./default_config

# loading the file (already implemented)
node dist/my_app.js --config ./my_custom_config

Notes

Only supporting ini & yaml / yml (none = ini) initial implementation. JSON files possible if comment-json gets added as a production dependency

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions