A minimal template with the following things.
- Phaser 🕹️ Desktop and Mobile HTML5 game framework
- Electron ⚛️ Build cross platform desktop apps with JavaScript, HTML, and CSS
- Parcel 📦 Blazing fast, zero configuration web application bundler
- TypeScript ⌨️ is a typed superset of JavaScript that compiles to plain JavaScript.
git@github.com:distantcam/phaser-electron-typescript-parcel.git
cd phaser-electron-typescript-parcel
yarn
Run these commands to clean up the directory
# Cleans up the build and dist folders
yarn clean
# Cleans up the builds, build cache, and node modules
yarn superclean
Run these commands to start dev server and Electron app
# Parcel bundles the code and runs dev server
$ yarn server
# Run the electron app which uses local dev server
$ yarn client
# To run both commands together
$ yarn dev
# To run a static build and start an electron client
$ yarn start
# This compiles the code so it can be debugged in VS Code
$ yarn debug
Run this command to bundle code in production mode
# Parcel bundle code once
$ yarn build
# Create executables
$ yarn dist