cocos2d / cocos2d-html5

Cocos2d for Web Browsers. Built using JavaScript.
https://www.cocos.com
3.07k stars 902 forks source link

npm version lib dependencies not good #1547

Open youxiachai opened 10 years ago

youxiachai commented 10 years ago

Example :

if cocos.json just set

"dependencies" : [
        "cocos2d-html5"
]

Somethimes it will throw ERROR. it happen CCTexture2D.js line 500.

because CCTexture2D.js dependencies ccshaders lib.

should manual set cocos.json

"dependencies" : [
        "cocos2d-html5",
        "ccshaders"
]

There is not good, I think lib should solve dependencie by itself .

SmallAiTT commented 10 years ago

Thx. We will refactor to solve it.