GithubHelp home page GithubHelp logo

puradawid / devmops Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bialjam/devmops

0.0 2.0 0.0 3.74 MB

devMOPS repository for BialJam 2016.

License: Creative Commons Zero v1.0 Universal

JavaScript 96.97% HTML 1.61% CSS 1.42%

devmops's Introduction

Phaser ES6 Boilerplate

Features

✔ Heavily commented, flexible Gulpfile (that means it uses Gulp).

Browserify + Babelify (Yes, it uses Babel).

Browsersync = Livereload + Mobile debugging with Weinre.

✔ Example: Extending Phaser & modular development.

✔ Production (UglifyJS) and Development (Sourcemaps) builds.

✔ Did I say ES6? Well.. some ES7 too! (See Experimental features).

Why?

ES6 is the future!

Anyways, I've been using ES6 for a while in other personal projects, and I currently prefer it over ES5 and Typescript. I found the new Class-based syntax to be a better fit for my developer needs. Unfortunately, the best way to access all the features of the new standard is by using a transpiler. This boilerplate is an attempt to reduce the time spent configurating a project and installing dependencies by providing a template that can work as an scaffold for any Phaser game.

Usage

You need Node.js and npm. You should also have git installed, but it's not mandatory.

Clone the repository (or download the ZIP file)

git clone https://github.com/belohlavek/phaser-es6-boilerplate.git

Install dependencies

npm install

Run a development build...

npm start

...or a production build.

npm run production

Development builds will copy phaser.min.js together with phaser.map and phaser.js Your ES6 code will be transpiled into ES5 and concatenated into a single file. A sourcemap for your code will also be included (by default game.map.js).

Production builds will only copy phaser.min.js. Your ES6 code will be transpiled and minified using UglifyJS.

Any modification to the files inside the ./src and ./static folder will trigger a full page reload.

If you modify the contents of other files, please manually restart the server.

Modifying gulpfile.js

See gulpfile.md

License

This project is released under the CC - Creative Commons License

devmops's People

Contributors

bkraszewski avatar mateuszjasiuk avatar puradawid avatar

Watchers

 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.