Greetings for everybody.
I've done a very basic but fancy boilerplate for development with Phaser and ES6 using Webpack 4.
Phaser is a game development engine made with Javascript and has a big success into the game development community. Now I've added ES6 support (well maybe it has been done before) for making cleaner code than vanilla style.
Feel free to use it in practices, sandboxes and productive developments.
For installation, just execute this line commands:
$ git clone https://github.com/RZEROSTERN/webpack4-phaser-boilerplate.git
$ cd webpack4-phaser-boilerplate
$ npm install
After installation, just use this comments for starting your development:
- Use webpack hot-reloading features
npm run serve
- Build for development
npm run dev
- Build for production
npm run build
- Documentation
- Publishing as NPM package
- Electron Packaging (Want to publish as desktop app huh ?)
Phaser Webpack 4 boilerplate is released under the MIT License.
Phaser is property of Photon Storm Limited. For documentation, visit their website here or its GitHub here
Want to contribute? Just fork the repository and send me your pull requests. Credits will be granted to all of you.
Right now for Hacktoberfest 2020 feel free to make some updates and changes. Fork and have fun.