mediamonks / muban

A backend-agnostic framework to enhance server-rendered HTML using a modern webpack development setup.
https://mediamonks.github.io/muban/
39 stars 15 forks source link

Proposal to rename the mockdata files with a reference to the block #136

Open pigeonfresh opened 4 years ago

pigeonfresh commented 4 years ago

data/c01-hero-default.yaml data/c01-hero-*.yaml

A naming convention like this would make it easier to open data files for a specific component in editors.

ThaNarie commented 4 years ago

Works for me :)

pigeonfresh commented 4 years ago

For legibility I would suggest snake-case, especially since most editors have a smart enough search system to deal with different casings.

skulptur commented 4 years ago

@pigeonfresh I think you meant kebab-case. PR looks good, but I don't agree with -data.yaml. All yamls are data, and we're not doing -template.hbs or *-styles.scss.

Can we remove that?