cocos 中要调用 web3.js,应该如何操作?

如题中所示,如果需要在 cocos creator 或者 cocos2d-js 中使用 web3.js,应当如何配置项目?

是否有这方面的案例?