DiGuoZhiMeng / cocos2d-js-webpack

Develop Cocos2d-js with ES6+, Babel7 and Webpack4.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cocos2d-js-webpack

Develop Cocos2d-js with Modern Web Way. You can use ES6+ syntax, npm libraries and Node Http Server. The Webpack4 and Babel7 are also worked together.

1. Remember install cocos2d-x SDK and Apache Ant first.

  • cocos2d-x-3.17.1
  • apache-ant-1.10.5-bin

2. Development Build

npm install
npm run dev

or

yarn install
yarn dev

3. Production Build

npm install
npm run prod
npm run server

or

yarn install
yarn prod
yarn server

4. Eslint Checker

npm install
npm run lint

or

yarn install
yarn lint

5. See report.html in publish folder.

report

About

Develop Cocos2d-js with ES6+, Babel7 and Webpack4.

License:MIT License


Languages

Language:JavaScript 99.8%Language:CMake 0.1%Language:HTML 0.1%