gaelbeltran Posted October 26, 2013 Share Posted October 26, 2013 I have experience with programming but I'm pretty new to source control.I'm using bitbucket(unlimited private repos) and Jetbrains WebStorm. How can I easily get only the library code, without the examples and other things? Is there an easier way to set-up and start a new project? Link to comment Share on other sites More sharing options...
Arlefreak Posted October 26, 2013 Share Posted October 26, 2013 The main library is at the build folder, so you can grab it from there gaelbeltran 1 Link to comment Share on other sites More sharing options...
rich Posted October 26, 2013 Share Posted October 26, 2013 Or use githubs "download zip" feature, then you'll get the whole lot (the examples and docs are pretty essential imho) in a single file. https://github.com/photonstorm/phaser/archive/master.zip gaelbeltran 1 Link to comment Share on other sites More sharing options...
gaelbeltran Posted October 26, 2013 Author Share Posted October 26, 2013 Thanks for your responses Oh yes, I know I can get the whole source with the download feature, I've been doing that.But I'm wondering if there's a git command that let's you download just the engine source to your own repo, to start a new project. Link to comment Share on other sites More sharing options...
callmehiphop Posted October 26, 2013 Share Posted October 26, 2013 If you registered Phaser as a bower component you could easily install it (assuming you have bower install globally) by typing$ bower install phaserOR, if you reaaally wanted to, you could create a Yeoman generator and scaffold an entire Phaser project by simple typing$ yo phaserIf you guys have an interest in this, I could send a PR to help out. Link to comment Share on other sites More sharing options...
bkurtz13 Posted October 26, 2013 Share Posted October 26, 2013 Go to the github repo. Open the build folder, then click on "phaser.js". Click the "Raw" button to open it in your browser. Right click and "save as". Link to comment Share on other sites More sharing options...
Chris Posted October 26, 2013 Share Posted October 26, 2013 Well, git has no feature to download a single file.Since the code is hosted on github, you can navigate to the build folder, pick either phaser.js or phaser.min.js (I would not recommend the minified version for development).After the page has loaded the file content, you can click the little "Raw" button on the top right to switch to a display mode where you can simply save the file on your HDD. Also, if you like to just pull the repo without forking it, you simply create a new folder somewhere, then navigate to it with your commandline and execute this commands:git initgit remote add origin [email protected]:photonstorm/phaser.gitgit pull origin masterTo pull the latest version from the github servers. (Hold tight, this will take a moment). *edit: heh, bkurtz13 was faster Link to comment Share on other sites More sharing options...
Mike Posted October 26, 2013 Share Posted October 26, 2013 No one said anything about: "The easiest way to use GitHub on Windows." http://windows.github.com/ I use it and i'm quite happy with it. Link to comment Share on other sites More sharing options...
Chris Posted October 27, 2013 Share Posted October 27, 2013 Honestly, their claim is a bit bold. I see no benefits over using the website + the cli git client. Link to comment Share on other sites More sharing options...
Julian Posted October 27, 2013 Share Posted October 27, 2013 If you're interested in an UI for Git you can also have a look at Atlassian SourceTree http://www.sourcetreeapp.com Link to comment Share on other sites More sharing options...
rich Posted October 27, 2013 Share Posted October 27, 2013 If you registered Phaser as a bower component you could easily install it (assuming you have bower install globally) by typing$ bower install phaserOR, if you reaaally wanted to, you could create a Yeoman generator and scaffold an entire Phaser project by simple typing$ yo phaserIf you guys have an interest in this, I could send a PR to help out. I would definitely be interested in offering these as additional methods to get the library, yes. Link to comment Share on other sites More sharing options...
gaelbeltran Posted October 28, 2013 Author Share Posted October 28, 2013 Thanks for all your help guys! Yes Rich, that would be an awesome distribution platform! Link to comment Share on other sites More sharing options...
Recommended Posts