构建 A-Frame 项目文件的公认"best practice"方法是什么?



在制作A-Frame项目时,我无意中使用了不同的目录结构,这在我自己的项目和其他人的项目之间切换时会让我感到困惑。

构建A-Frame项目以使其与其他项目保持一致的"最佳"方法是什么?是否有任何最佳实践,或者这只是个人偏好?

例如(静态项目(:

/index.html
/models/
/images/
/js/
/lib/
/audio/

或者也许

/index.html
/assets/images/
/assets/models/
/js/
/js/lib/

一些很好的例子!

  • 样板:https://github.com/supermedium/aframe-super-hot-loader/tree/master/example
  • 生产项目:https://github.com/supermedium/moonrider
    assets/
      models/
      img/
      sounds/
    src/
      index.js
      components/
        shaders/
      scene.html
    index.html
    package.json
    webpack.config.js

最新更新