DanielContreras18881 / phaser-electron-typescript-parcel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phaser-electron-typescript-parcel Build Status

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.

Installation

  • git@github.com:distantcam/phaser-electron-typescript-parcel.git
  • cd phaser-electron-typescript-parcel
  • yarn

Usage

Cleaning

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

Development mode

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

Production mode and packaging app

Run this command to bundle code in production mode

# Parcel bundle code once
$ yarn build

# Create executables
$ yarn dist

About


Languages

Language:JavaScript 64.1%Language:TypeScript 19.2%Language:HTML 10.5%Language:CSS 6.2%