An open API service indexing awesome lists of open source software.

https://github.com/shaching/cocos2d-js-webpack

Develop Cocos2d-js with ES6+, Babel7 and Webpack4.
https://github.com/shaching/cocos2d-js-webpack

babel7 cocos-creator cocos2d-html5 cocos2d-js cocos2d-x docker es6 eslint koa2 node npm prettier webpack4 yarn

Last synced: 8 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# 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](https://github.com/shaching/cocos2d-js-webpack/blob/master/report.png)