MultiverseMiner / multiverseminer

Join the chat: #multiverseminer on irc.freenode.net
http://dev.multiverseminer.com
Other
41 stars 18 forks source link

Improving the project #11

Closed robotmayo closed 10 years ago

robotmayo commented 10 years ago

I feel given the scope of the project before continuing we should implement things to make development and deployment easier. I think we should tackle issues such as dependency management, testing and builds. I believe the earlier we implement these things the better. I know from experience JavaScript can get out of hand very easily and quickly. I just want to gather your thoughts on this idea, get feedback, suggestions etc.

Craiel commented 10 years ago

Sounds good, do you have some suggestions so far for this? I don't have a huge amount of experience with larger scaled javascript things yet since i'm mostly working in other languages.

I'm open for suggestions :)

robotmayo commented 10 years ago

On the topic of dependency management, there are two major camps. RequireJS and CommonJS(browserify/node modules). I personally am a huge fan of CommonJS/browserify. Its very easy to pick up and is so much cleaner than RequireJS.

For testing, there are a ton of different librarys and frameworks from Jasmine to Karma. I have a personal preference for MochaJS, again because its simple but powerful. Its also modular and will run with almost any assertion library(ChaiJS is my favorite).

As for build tools, grunt and gulp are the only two really worth looking at. Again I love Gulp for the same reasons as above. Easy to use and comes with a lot of power.

Applying these constructs will require the folder structure to change so thats something to be discussed by everyone and planned out.

Craiel commented 10 years ago

I like browserify, looks very clean and i like what it does. I would like to have an obfuscator as well after the bundle is built so if you know a good one for that that would be neat.

I'd be fine with using browserify, mocha or chain and grunt. But we'd have to coordinate this with everyone as you mention and may have to adjust how the page is put up now. Ideally i would like it not to get too complicated for less experienced people to test the page and the workflow so we have to take care of that.

Maybe we can sit down on the weekend and go through this and see how we can organize this. I want to get more work done for fridays version so lets postpone it until after friday :)

robotmayo commented 10 years ago

Yeah, UglifyJS will be used for obfuscation. I have used it before and it works well. Once this is set up it should actually be easier for less experienced people to work with as there will be standards and automated builds. Taking the weekend to discuss and plan it sounds good to me.

interlock commented 10 years ago

My I suggest Waffle.io to get some ideas and potential work queued up for the taking?

Also, any plants to server side some of this game logic to prevent cheating and work towards something of an MMO'ish feel?

ghost commented 10 years ago

@interlock yes, we will be moving most things serverside. Are you in the chat with us? #multiverseminer on irc.freenode.net

antlong commented 10 years ago

@interlock Waffle is now live. https://waffle.io/MultiverseMiner/multiverseminer

morgajel commented 10 years ago

Closing this ticket in favor of more specific requests.