Code Monkey home page Code Monkey logo

phaser-db5-seed-es2015's Introduction

#phaser-db5-seed-es2015

This project is an application skeleton for a typical phaser.js game. You can use it to quickly test, build and deploy your phaser projects.

Based off of phaser-db5-seed with support for es2015.

It includes a basic splash screen, loading bar and instruction panel.

##Getting Started

npm install gulp -g
npm install
gulp init

This will download and install the necessary files to get started.

Running With Scissors

Now you can just run

gulp

This will start a task that will watch for changes to files in the "src" directory. When they are updated the webserver will automatically reload and jshint will get run, letting you know if there are any linting issues that need resolved.

Packaging For Deployment

gulp build

This will package up your game in the dist directory for deployment.

Testing Dist

You can test the distribution package before deployment by running gulp dist-server to fire up a webserver from the "dist" folder.

Deploying Your Project

Edit rsync-config.json

{
  "rsync": {
    "username": "yourusername",
    "hostname": "yourdomain",
    "destination": "/path/on/server/"
  }
}

Change these settings to reflect your servers settings. Then run

gulp deploy

to upload the game files to your server.

List Of Gulp Tasks

gulp default

Watches for changes to files in the "src" directory and updates the webserver and runs linting tools on the files with they are changed.

gulp dev-server

Starts a browser loading content from the src directory

gulp dist-server

Starts a server loading content from the dist directory. Assuming it's been built already.

gulp init

Downloads phaser.min.js, phaser.map and phaser-debug.js to the src/js/lib directory.

gulp get-phaser

Downloads phaser.min.js and phaser.map to the src/js/lib directory.

gulp get-debug

Downloads phaser-debug.js to the src/js/lib directory

gulp clean

Clears all files out of the "dist" direcotry

gulp copy

Copies the files/structure in the src/assets directory with the exception of images and javascript.

gulp imagemin

Copies and compresses the png's in the src/assets/images/ direcotyr

gulp build

Runs clean, copy and imagemin. It aslo uses usemin to concatenate and minify the HTML, JS and CSS in the "src" directory and place it in the "dist" directory

gulp lint

Runs jshint on the files in src/js/*.js

gulp watch

Watches src/js/*.js and src/index.html and runs the lint task when these files are changed.

gulp deploy

Rsyncs the files in the dist directory to a remote server specified in the rsync-config.json file.

phaser-db5-seed-es2015's People

Contributors

rantt avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.