Luiz Bills Posted January 31, 2014 Share Posted January 31, 2014 I create this simple phaser boilerplate inspired on FireShell. Features:- auto-reload game page on changes.- auto-browserify- auto-minification of js files More info on https://github.com/luizbills/phaser-js-boilerplate casarock 1 Link to comment Share on other sites More sharing options...
rich Posted February 1, 2014 Share Posted February 1, 2014 Ohh looks pretty neat! Really need to find some time to sit down and play with this Link to comment Share on other sites More sharing options...
Luiz Bills Posted February 1, 2014 Author Share Posted February 1, 2014 thanks for the opportunity. @udpate- added some game states. Link to comment Share on other sites More sharing options...
d13 Posted February 1, 2014 Share Posted February 1, 2014 Hello Bills, could you explain how this works? Link to comment Share on other sites More sharing options...
Luiz Bills Posted February 2, 2014 Author Share Posted February 2, 2014 @d13You use browserify? If yes, use it. Because it compiles automatically all js files every time you change anything. Make a test: clone my repo and then execute the file "grunt-dev". ps: sorry if you don't understand my english. Link to comment Share on other sites More sharing options...
casarock Posted February 2, 2014 Share Posted February 2, 2014 Hi, I've tweaked this great boilerplate in my fork: https://github.com/appsbu-de/phaser-js-boilerplate/tree/feature/copying I've added a copy task which copies assets and public files into 'game'. Now I can clean 'game' completely and it's always been generated. Now I've got a clean build directory to be shipped (game) and a source directory with all files I want to edit (src). I could open a pull request if you want. Link to comment Share on other sites More sharing options...
george Posted February 2, 2014 Share Posted February 2, 2014 Hello,thanks for this. Looks promising. I always wanted to setup a lightweight grunt configuration to use in html projects and therefore also in phaser projects.My current workflow is based on middleman. It's a static page generator like jekyll. It's based on sprockets and with this a I have the full power of auto compiling and deploying- just I know it and love it in rails. But it feels somehow exaggerated to use it even for the smallest code just to to be able to use haml, coffee or the concatenation & minimizing functions I think I'm stuck with this for the current project but for the next project I definitely will try your grunt config. Thanks! Luiz Bills 1 Link to comment Share on other sites More sharing options...
Luiz Bills Posted February 2, 2014 Author Share Posted February 2, 2014 @casarockYour fork don't works. Please executes "grunt-dev" file. And correct (synchronize/pull) the .gitignore, I found a bug @georgeThank you Link to comment Share on other sites More sharing options...
woratana Posted February 3, 2014 Share Posted February 3, 2014 Thanks for sharing! I have been using Julien's generator-phaser with Yeoman: https://github.com/julien/generator-phaser This one can pack your game into 'dist' folder (development is 'src' folder) which is very easy However, the packed game is not working in Facebook App iframe, but the unpacked game does. Luiz Bills 1 Link to comment Share on other sites More sharing options...
casarock Posted February 4, 2014 Share Posted February 4, 2014 @casarockYour fork don't works. Please executes "grunt-dev" file. And correct (synchronize/pull) the .gitignore, I found a bug Hi, I do not use the Shell scripts. I only use grunt from command line. I've tweaked many things so I won't be able to create a Pullrequest anymore. Anyway. I like your work! And it helped me a lot setting up my workflow. Link to comment Share on other sites More sharing options...
Recommended Posts