Quantum-Game / quantum-game-2

LEGACY open-source version of Quantum Game 2 (Sept 2019 - Oct 2020)

Home Page:https://quantumgame.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

View component folder and filename structure

stared opened this issue · comments

The current structure is of folders and files is chaotic.

I ask to change the structure, so it is more ordered. (While, please resisting a temptation to refactor or fix any other parts of the code, beyond paths for import lines).

For elements only used within an Encyclopedia, adapt convention EncyclopediaSection, EncyclopediaSectionBoard etc.

The folder structure is up to you (though, please post to a blog post with this best practice; I saw a few).

There are various converions. Right now the one we use is closest to: https://itnext.io/how-to-structure-a-vue-js-project-29e4ddc1aeeb

In thic case, it is essential to:

  • put all components (except for layours) in components foldes
  • name things accordingly, e.e. Info and InfoSection, InfoTransition (and certainly no abbreviations like QCell)

So first, read default Vue.js recommendation: https://vuejs.org/v2/style-guide/#Priority-B-Rules-Strongly-Recommended-Improving-Readability

See also:

Closed as PR #50 accepted