JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q22546F
  • License ISC

Deploy apps to FirefoxOS

Package Exports

  • fxos-deploy

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fxos-deploy) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

fxos-deploy

Deploy Firefox OS application to simulator

Install

$ npm install fxos-deploy

Usage

Start a simulator and deploy app (simple way)

Start a FirefoxOS simulator and connect to it through firefox-client by returning client.

var deploy = require('fxos-deploy');

// Callback style
deploy('manifest.webapp', 'nicola.zip', function(err, appId){
  console.log("deployed:", appId);
})

// Promises style
deploy('manifest.webapp', 'nicola.zip')
  .then(function(appId){
    console.log("deployed:", appId);
  })

Start a simulator and deploy app (with settings)

var deploy = require('fxos-deploy');

deploy({
  port:8002,
  zip: 'nicola.zip',
  manifestURL: 'manifest.webapp'
}, function(err, appId){
  console.log("deployed:", appId);
})

Start a simulator and deploy app (with an existing opened connection)

var deploy = require('fxos-deploy');
var FirefoxClient = require("firefox-client");

var client = new FirefoxClient();

client.connect(1234, function(err) {
  deploy({
    zip: 'nicola.zip',
    manifestURL: 'manifest.webapp',
    client: client
  }, function(err, appId){
    console.log("deployed:", appId);
    client.disconnect();
  });
});