tmp/ folders into the webserver, because both folders contain files needed to preview the application (js/css in tmp/, images, fonts etc. tmp - Folder, starts a webserver and mounts the app/ and. It generates a nice Gruntfile which compiles my coffee and scss into a. I am writing an application with coffeescript and compass by using a yeoman angular scaffolding. For some use-cases it may be nice that is starts its own webserver and serves a directory, but for me it is useless this way :( I find it hard to use this new ripple plugin. You can either keep running "ripple emulate", or do "cordova prepare" in another Terminal tab so you can reload the same tab. If you just reload the browser tab it won't show the latest changes. But you do need to rerun "ripple emulate" to refire the simulator. When you edit your code, you do not need to run cordova prepare. Ripple emulator mac os x android#Obviously if you add Android as a platform as well it will go away.Īdditional Notes on Jan 11, 2014: A caveat to the first note. Just switch to an iOS device and it should remove the error. You can even use a Grunt watcher to handle this for you.Īdditional Notes on Jan 2, 2014: If you ever launch Ripple and see this in the display: Error: static() root path required (lots more crap beneath) it may be that you only added iOS support to your project and Ripple defaults to an Android device. What I recommend is - use a tab to fire up Ripple and another tab to simply run the prepare. Secondly - every time you edit your code, you're going to need to re-prepare your project. Ripple emulator mac os x install#any core feature), you still have to install them the normal way even if you are using Ripple. I've successfully run it now on Windows and OS X.Īdditional Notes on Nov 5 (yes, about 30 minutes after I posted): Yes, if you want to use plugins (i.e. Check it out and let me know if you run into any issues. If you do "ripple emulate" in the root, it just plain works.Īt this point, Ripple actually fires up Chrome for you and opens it to your application:Īnd that's it! There's a bit more detail at the project home page. Ripple emulate -path platforms/android/assets/wwwĪnd just to mix things up a bit - a screenshot from OS X to go with the Windows shots above:Įdit as of 12:14AM - thanks to Jonathan Rowny: You do not need to specify a path. You can do this by running it from (yourproject)/platforms/android/assets/www or by passing a path argument: Ripple emulator mac os x code#You need to tell Ripple where your Android code exists. So how do you use Ripple? From the root of your project, you can run the ripple command. I mentioned earlier that you needed to remove the old extension. Ok, this is where Ripple acts differently. (This should work in PhoneGap too.)ĬD into your new project, add Android as a platform, and prepare it so the files are laid out. If you have npm installed, then install ripple-emulator: If you have done anything with PhoneGap or Cordova in 3.0 then you already have this. If you don't have npm, then please install it by installing Node. If you still see the little blue Ripple icon to the right of the URL bar than you haven't done it right. Ripple emulator mac os x how to#If you don't know how to do that, simply go to your Chrome Extensions page, find Ripple, and disable or remove it. Leaving it installed will conflict with the new Ripple. It is still very cool, but how you interact with it and PhoneGap has been changed.įirst and foremost - you must remove the Ripple Chrome extension if you have it installed. In this blog post, I'm going to describe how to use Ripple. Previously, Ripple was a Chrome extension and was managed by some folks from Blackberry. Ripple emulator mac os x update#For the last few months, a new developer, Gord Tanner, has been working on an update to the Ripple project at Apache. Whether it be a Chrome issue or something different in PhoneGap, Ripple stopped working properly. Unfortunately, sometime around the PhoneGap 2.6 timeframe, something went wrong. While not as good as a real device, it was incredibly useful for development. Ripple included a UI that gave you a pseudo-mobile view of your application and a way to emulate various features including the camera and the accelerometer. Ripple was (is, see details) a Chrome extension that allows you to run PhoneGap/Cordova applications in the browser. Edit: As I find more things, I'll post them to the bottom of this blog post.įor folks who have seen me present on PhoneGap/Cordova, you know I'm a huge fan of Ripple.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |