Mixins are great!
But the names of mixin-properties can’t change and they can collide soon if you work with a lot of mixins and / or if you work a long time at the same project.
Proposal: Inheritance syntax for properties in yaml.
In the currently proposed solution, the finally not needed properties singleline-inspector and text-inplace have to be removed with a postprocessor in this example.
But I would not clean up these properties automatically because the example could also look like the following:
thanks for your ideas and participation to the project!
I personally think this change would be quite dangerous and hard-to-grasp for people, which is why I would not like to support this. Did you know you can use YAML Anchors to share common configuration parts, as explained in https://gist.github.com/bowsersenior/979804 ?
The drawback is that this would only work in the same file; but that’s probably OK!
That’s the main problem, to deliver project-wide property defaults this won’t work.
True. It’s an additional dimension to think about while creating NodeTypes.
But if it’s used right, it allows slimmer and non-breaking NodeType-Properties.
Maybe it’s a way to refactor the NodeTypeManager and YamlSource with Interfaces, so that they can get replaced by design?
I’d be fine with the direction of adding the necessary hooks / interfaces for NodeTypeManager or Configuration Framework in order to hook into this in an extra package
If you need help figuring out the exact places, let me know