Hextris / hextris

Fast paced HTML5 puzzle game inspired by Tetris!
https://hextris.io
Other
2.22k stars 971 forks source link

Build system #93

Open lengstrom opened 10 years ago

lengstrom commented 10 years ago

We need a real build system.

zckrs commented 10 years ago

What do you mean by "build system" ? A task to deploy a new version for example?

lengstrom commented 10 years ago

I'd like to have a system in which we use master as the code development branch, and gh-pages as the deploy branch.

The tricky bit is caching - to prevent caching, we have to rename all of the files that we modify, or else the page will have relatively random behavior for repeat viewers. Thus, I think that we should try to find a way (probably some sort of shell script) that will automatically join all of the .js files in the correct order, name it a version, and then modify index.html's code to account for that.

zckrs commented 10 years ago

You should see around a "task runner" like GulpJS

A sample gulpfile.js : https://github.com/gulpjs/gulp/#sample-gulpfilejs

gulp-concat join all file input in one file output.

Many plugins exist : http://gulpjs.com/plugins/

You would like gulp-rev