blueprint icon indicating copy to clipboard operation
blueprint copied to clipboard

New draft.yaml syntax - config

Open benjam-es opened this issue 3 years ago • 1 comments

Synopsis:

As a further improvement to the configurability of the package, we could simplify things for those who want to make single simple changes to the configuration often, without needing to publish the full config file and make an edit, then re-run the build command

Proposed Syntax:

models:
  ModelOne:
    column: datatype modifier

  ModelTwo:
    column: datatype
    another_column: datatype modifier

config:
    namespace: MyAppNamespace
    generatePhpdocs: true

Expected Behavior:

Streamline the process for users who often just need simple tweaks. Also provides a visual reference of changes users want with a specific draft file.

This would read the tree for config, and merge the config overrides from the draft yaml file

benjam-es avatar Jan 02 '22 13:01 benjam-es

Having a superseding way to overwrite config in the Draft file could be helpful for those one-offs. Much like config in a phpunit.xml file. However, we shouldn't replace the config file entirely. Just allow temporarily adjusting it for a build.

jasonmccreary avatar Jan 02 '22 16:01 jasonmccreary

Merged in #575.

jasonmccreary avatar Oct 05 '22 17:10 jasonmccreary