ATTENTION: this piece of code is super experimental and can be so radioactive that it could break your Sublime! It's going to be amazing.
The aim is to:
-
Connect Sublime Text to Firefox Developer tools: live-updates of HTML and CSS, read console logs can be done directly from Sublime without any external tool by connecting to super-powerful RDP (aka Remote Debugging Protocol). This allow us to edit CSS during runtime exactly as the Web Inspector would.
-
Use Sublime Text to deploy apps for FirefoxOS: while the new Firefox WebIDE is awesome, some developers might want to use their favourite editors.
- Install the plugin
$ cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
$ git clone https://github.com/mozilla/fireplay-sublime fireplay
- In Firefox
about:config
setdevtools.debugger.remote-enabled
to true
Usage instruction are even more experimental and will be soon simplified.
- Open browser and
shift
+F2
and typelisten
- Run
cmd
+shift
+p
- In Sublime select
Fireplay
and follow the instruction
- In Firefox
about:config
setdevtools.debugger.prompt-connection
to false
- Open WebIDE or App Manager and run the simulator
- Find the port of the simulator and save it into your settings
- Run
cmd
+shift
+p
- In Sublime select
Fireplay
and follow the instruction
- Offer a command line tool that communicates with the device and webapps actor
- CLI app tools should have a way to push apps
- Emscripten ffdb.py for b2g interaction
- WebIDE implementation for pushing the app in javascript
- Remote style editor (start there, probably performance issues, gotta work around that)
- Binding Sublime console