Skip to content

shaching/cocos2d-js-webpack

Repository files navigation

cocos2d-js-webpack

Develop Cocos2d-js with modern web way. You can use ES6+ syntax, npm libraries and Node Koa2 http server. The Webpack4 and Babel7 are also worked together. And Eslint, Prettier, Airbnb Code Style will auto check quality.

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