Hi all!
This boilerplate has been added ES6 futures in cocos2d-js project by dint of babel. For build and packing used gulp.
if you have questions or comments write in the topic.
Hi all!
This boilerplate has been added ES6 futures in cocos2d-js project by dint of babel. For build and packing used gulp.
if you have questions or comments write in the topic.
Hi~~ How to compress cocos2d-JS v3.13 into cocos2d-js.js
I have some error with gulp!
Update Cocos2D-JS v3.14.1
How to compress cocos2d-JS v3.13 into cocos2d-js.js
What for?
I’m a bit confused over how to setup here. Is there a guide on how to get setup from scratch using gulp/es6 and live reload? I cloned your git repo and followed the readme. Ended up with this error when I entered:
npm run serve
…
[0] [Sun Jan 07 2018 18:35:28 GMT+0000 (GMT Standard Time)] "GET /.es5/game.js" "Mozilla/5.0
(Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"
[0] [Sun Jan 07 2018 18:35:28 GMT+0000 (GMT Standard Time)] "GET /.es5/resources.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36"
[0] [Sun Jan 07 2018 18:35:28 GMT+0000 (GMT Standard Time)] "GET /.es5/game.js" Error (404): "Not found"
[0] [Sun Jan 07 2018 18:35:28 GMT+0000 (GMT Standard Time)] "GET /.es5/resources.js" Error (404): "Not found"
Can you help?
I fixed this. There is just a missing step in the notes, it should read:
$ git clone https://edisoni@bitbucket.org/edisoni/cocos2d-js-es6.git
$ cd cocos2d-js-es6
$ npm install
Copy your version of the cocos2d-html5 folder into folder ‘frameworks’
Compile your code this will take the contents of the src folder and compile into the .es5 folder
npm run compile
npm run serve
Also the .cocos-project.json file was missing from the repo here is what mine looks like with the change for the update to cocos2d-x-3.16
{
"engine_version": "cocos2d-x-3.16",
"has_native": true,
"project_type": "js"
}
Hope this helps someone.