Developing gaia was always more cumbersome to me comparing to developing web apps. The main difference is that live reload is broadly supported for developing web apps. This project aims to remove this gap by providing live reload to gaia app development.
This module saves you from manually rebuilding Gaia and clicking the install and relaunch button on WebIDE.
This module currently only works on Mac.
- Download b2g desktop from https://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-central/ .
- Put b2g.app in Applications folder.
- Use node.js 0.12.7. (Other node.js versions may run into problems with the watch functionality of chokidar.)
npm install -g gaia-develop
In your gaia folder, run
gaia-develop b2g [deviceType] [appName]
Once the b2g desktop is running, file changes in gaia/apps
, gaia/tv_apps
and shared
will trigger a APP=appName make. After that it'll either restart b2g desktop or install and relaunch the selected app.
gaia-develop b2g phone sms
Shorthand version:
gaia-develop sms
If no appName
argument is provided, on file changes it will rebuild Gaia and restart b2g.