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.
- Host: GitHub
- URL: https://github.com/shaching/cocos2d-js-webpack
- Owner: shaching
- License: mit
- Created: 2019-03-08T12:54:17.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-11T17:22:59.000Z (about 7 years ago)
- Last Synced: 2025-03-24T06:03:58.543Z (about 1 year ago)
- Topics: babel7, cocos-creator, cocos2d-html5, cocos2d-js, cocos2d-x, docker, es6, eslint, koa2, node, npm, prettier, webpack4, yarn
- Language: JavaScript
- Homepage:
- Size: 134 MB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
