Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

three.min.js 应该放在公共目录lib/下? #2

Open
Jayin opened this issue Aug 12, 2015 · 3 comments
Open

three.min.js 应该放在公共目录lib/下? #2

Jayin opened this issue Aug 12, 2015 · 3 comments

Comments

@Jayin
Copy link
Contributor

Jayin commented Aug 12, 2015

image

@fritx
Copy link
Member

fritx commented Aug 13, 2015

哦 是这样 我的思路是:

  • 在某个part引入的新零件就加在这个part里
  • 沿用过去的零件就引用它所在的part
  • 任何零件都有可能共用 包括three.js本身 所以不特殊对待

这样的好处就是:

  • 根目录清晰(零件基本都分散在各个part)
  • 清晰看出某个旧零件是在哪个part引入
  • 避免公共区域多度规划问题 比如个人认为threejs的examples里很乱

不知大家怎么看?

@VectorWen
Copy link

有想法,但也会带来很多问题,当有很多part的时候,想在其中找一个零件需要一个一个part查找,但你可以反驳说,你记得零件都放在哪个part里面。居然你记得哪个part加入的,何必不统一存放呢。

@fritx
Copy link
Member

fritx commented Aug 13, 2015

嗯,有道理,不过我在如下几点存有疑惑:

  • 如果界定是否公共资源(这是否会改变,造成过度迁移)?
  • 设定公共区域后,内部如何规划?(避免过度规划,如threejs/examples)
  • 如果所有资源都可能共用,那是不是part本身就所剩无几了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants