phoboslab / Ejecta

A Fast, Open Source JavaScript, Canvas & Audio Implementation for iOS
2.81k stars 322 forks source link

Please share your Ejecta workflow #238

Closed ddon closed 10 years ago

ddon commented 10 years ago

Trying to figure out good or the best way to use Ejecta.

I want to write an app for iOS, Android and Windows Phone using JavaScript, and I want to use Ejecta for iOS part, because of its performance.

So, can you guys share your directory structure?

Looks like we need to have one directory for Ejecta, and one separate directory for the App. Then if I make changes to Ejecta xCode project, how do I make them without braking ability to pull changes from the github?

--Dmitri

amadeus commented 10 years ago

Not quite sure what you are getting at?

The way Ejecta works is you put your JS and images/etc in the App folder, within the Ejecta project. Then when you compile Ejecta, it's looks for an index.js file to kick everything off.

The App folder is ignored by git, so you could have your JS app in another git repo that you check out there.

weepy commented 10 years ago

How do you plan to do Android ? There's Ejecta-X but I don't know how mature it is.

On Fri, Oct 4, 2013 at 7:51 PM, Dmitri Don notifications@github.com wrote:

Trying to figure out good or the best way to use Ejecta.

I want to write an app for iOS, Android and Windows Phone using JavaScript, and I want to use Ejecta for iOS part, because of its performance.

So, can you guys share your directory structure?

Looks like we need to have one directory for Ejecta, and one separate directory for the App. Then if I make changes to Ejecta xCode project, how do I make them without braking ability to pull changes from the github?

--Dmitri

— Reply to this email directly or view it on GitHubhttps://github.com/phoboslab/Ejecta/issues/238 .

ddon commented 10 years ago

@amadeus App is ignored via .gitignore, I already noticed that... but in order to deploy an iOS app, I need to make a lot of changed to the Ejecta project (setting right project name, bundle ids, setting right icons and startup images...), and these changes would not be ignored by git, and would create conflicts in the future pulls, am I right here?

@weepy I am using Cordova for other platforms, canvas performance is much better on Android than on iOS (without Ejecta). Looked at Ejecta-X, and I see that the last commit was on Jun 18, 2013... Not sure if it in active development.

weepy commented 10 years ago

@Dmitri thanks - Cordova looks v interesting. Are there any other options you've looked at ?

On Fri, Oct 4, 2013 at 8:01 PM, Dmitri Don notifications@github.com wrote:

@amadeus https://github.com/amadeus App is ignored via .gitignore, I already noticed that... but in order to deploy an iOS app, I need to make a lot of changed to the Ejecta project (setting right project name, bundle ids, setting right icons and startup images...), and these changes would not be ignored by git, and would create conflicts in the future pulls, am I right here?

@weepy https://github.com/weepy I am using Cordova for other platforms, canvas performance is much better on Android than on iOS (without Ejecta). Looked at Ejecta-X, and I see that the last commit was on Jun 18, 2013... Not sure if it in active development.

— Reply to this email directly or view it on GitHubhttps://github.com/phoboslab/Ejecta/issues/238#issuecomment-25722652 .

ddon commented 10 years ago

@weepy I played with Phonegap, but it is basically the same thing as Cordova. I have used Phonegap in the past, and before version 3.x it was very scary and full of issues. But now, after they released 3.x, it is much much better, they addressed all issues of the past 2.x version. Would be great to have something similar like Ejecta for Android as well, but I haven't found one yet.

amadeus commented 10 years ago

@ddon The 'easiest' but more tedious way would be to use the zip files off of the main site for development, and just grab the new zip and reconfigure on updates.

The more complicated way would be to clone the repo, set your settings, commit them in a new branch, then as new updates come in, merge/rebase them into your branch.

Then when you are ready to submit to the app store, make a new branch off of this mainline master, configure, then submit that.

Another pro tip, I created some html scaffolding so I can accurately test my app in the browser, since updates are faster, etc. Then, every once in a while, I just build for Ejecta and test to ensure everything is working properly.

phoboslab commented 10 years ago

Regarding testing in browsers: have a look at @shauninman's Ejecta-Desktop-Polyfill

ddon commented 10 years ago

@amadeus got it... thank you for your ideas and recommendations!

@phoboslab thank you for a link to Ejecta-Desktop-Polyfill project, will try it out! And thank you for Ejecta!!! :)

weepy commented 10 years ago

With Ejecta-Desktop-Polyfill, you might want to try the require.js from

https://github.com/weepy/browser-require

it should provide the same require function as Ejecta, but in the browser.

On Fri, Oct 4, 2013 at 10:19 PM, Dmitri Don notifications@github.comwrote:

@amadeus https://github.com/amadeus got it... thank you for your ideas and recommendations!

@phoboslab https://github.com/phoboslab thank you for Ejecta-Desktop-Polyfill project, will try it out!

— Reply to this email directly or view it on GitHubhttps://github.com/phoboslab/Ejecta/issues/238#issuecomment-25730904 .

weepy commented 10 years ago

I also found this for Cordova : https://github.com/phonegap/phonegap-plugin-fast-canvas#fastCanvas-api

which is quite alot like Ejecta - just much less fully featured.

On Fri, Oct 4, 2013 at 10:36 PM, Jonah Fox jonahfox@gmail.com wrote:

With Ejecta-Desktop-Polyfill, you might want to try the require.js from

https://github.com/weepy/browser-require

it should provide the same require function as Ejecta, but in the browser.

On Fri, Oct 4, 2013 at 10:19 PM, Dmitri Don notifications@github.comwrote:

@amadeus https://github.com/amadeus got it... thank you for your ideas and recommendations!

@phoboslab https://github.com/phoboslab thank you for Ejecta-Desktop-Polyfill project, will try it out!

— Reply to this email directly or view it on GitHubhttps://github.com/phoboslab/Ejecta/issues/238#issuecomment-25730904 .

weepy commented 10 years ago

This is also quite interesting --- https://github.com/funkaster/FakeWebGL

It's quite similar to Ejecta, but is written in C++ and uses SpiderMonkey, so apparently more portable to android.

On Fri, Oct 4, 2013 at 10:41 PM, Jonah Fox jonahfox@gmail.com wrote:

I also found this for Cordova : https://github.com/phonegap/phonegap-plugin-fast-canvas#fastCanvas-api

which is quite alot like Ejecta - just much less fully featured.

On Fri, Oct 4, 2013 at 10:36 PM, Jonah Fox jonahfox@gmail.com wrote:

With Ejecta-Desktop-Polyfill, you might want to try the require.js from

https://github.com/weepy/browser-require

it should provide the same require function as Ejecta, but in the browser.

On Fri, Oct 4, 2013 at 10:19 PM, Dmitri Don notifications@github.comwrote:

@amadeus https://github.com/amadeus got it... thank you for your ideas and recommendations!

@phoboslab https://github.com/phoboslab thank you for Ejecta-Desktop-Polyfill project, will try it out!

— Reply to this email directly or view it on GitHubhttps://github.com/phoboslab/Ejecta/issues/238#issuecomment-25730904 .