Build tool for Firefox OS Apps
fxosapp is a Firefox OS App build tool.
npm install -g fxosapp
If you want to use the push to device feature with
fxosapp push, you need
xpcshell in your path and
Remote Debugging enabled on your device.
Usage: fxosapp <action> [options]Known actions:package [file] Create app package zip as [file]. The default is/dist/application.zip.push Push to device.copy [path] Copy app files to [path]. The default is /dist/hosted.Known options:-p [path] The path to use as project directory, instead of the--path [path] current working directory.
App = require 'fxosapp'app =
The App constructor takes an optional path to the directory containing the
app = '/tmp/testproject/'
EventEmitter and emits the following events:
If there is an error, this event will be emitted together with an
manifest.webapp file was loaded, this event will be emitted.
If an app was successfully packaged as a zip file, this event will be emitted.
If an app was successfully pushed to a phone, this event will be emitted.
If an app was successfully copied to another path, this event will be emitted.
It is possible to search the directory tree upwards (i.e. all parent
directories) for a
manifest.webapp by calling
file = appfindManifest
findManifest will return
null if it could not find a manifest file.
The manifest file needs to be loaded explicitely by calling
If the manifest has been loaded the
manifest event will be emitted.
path = appfindManifestapploadManifest pathappon 'manifest'->consolelog 'manifest loaded!'
package method will package the app as zip file. It optionally takes an
filepath to store the zip to.
appon 'manifest'->apppackageappon 'packaged'->consolelog 'app packaged!'
push method will package the app and push it to a connected device. It
optionally takes an filepath to store the zip to.
appon 'manifest'->apppushappon 'pushed'->consolelog 'app pushed!'
copy method will copy the project files to another directory (for
distribution as hosted app). It optionally takes an filepath to copy the files
appon 'manifest'->appcopy '/tmp/hosted'appon 'copied'->consolelog 'app copied!'
MPL see LICENSE file.