Coder Social home page Coder Social logo

ojdon / html5-game-development-gulp-workflow Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 2.0 7 KB

๐ŸŽฎ A gulp workflow that is optimised for HTML5 Game Developement.

License: MIT License

JavaScript 100.00%
html5-game html5-game-development game-development-workflow gamedev gulp

html5-game-development-gulp-workflow's Introduction

HTML5 Game Development Gulp Workflow

A collection of gulp tasks that are optimised for HTML5 Game Development.

Getting Started

Installing Gulp

Gulp can automate recurring tasks that are performed throughout the game development process, such as minifying and error checking source code, optimising images and much more. Before you begin installing gulp, please ensure that you have NodeJS, NPM & Gulp installed globally on your system. Then run the following command from your game's source directory:

npm install

This will pull in the relevant Node packages, required by gulp.

Commands

You will now be able to run the following commands in order to achieve different tasks:

gulp zip - Adds your minified JS file and index.html to a zip file, great for quick distribution of your game

gulp publish - The command you run when you are ready to release your game. It will run the build commands for your JS and HTML, one last time before zipping them up.

gulp images - Compresses images for a lower file size

gulp build-html - minifies your HTML file(s)

gulp build-js - Checks your JS for errors, concatenates all your JS files down to one file before minifying the JavaScript code.

gulp build-dev - Checks your JS for errors and concatenates all your JavaScript files down to one file but doesn't minify (Easier for debugging!!)

gulp watch - Keeps a close eye on your specific JS files / folders and will run uglify whenever a change has been made, just like the gulp build command.

Any Requests?

Want a task automating for your game development workflow? Accepting requests via raising a new issue.

License

This gulpfile uses the same license as Gulp itself, MIT.

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.