FirefoxOS scripts to easily create a home screen.
npm install fxos-lib-mozappsThis is a promise based library which wraps mozApp methods to make app developer's lives easier. Some things that this library takes care of:
* Proper icon selection.
* Icon text extraction from locale.
* Entry point normalization.
Install the files into your project:
```
bower install KevinGrandon/firefoxos-mozapps
Include the script (if using bower install):
``
Getting app icons:
`
FxosApps.all().then(icons => {
// Do something with icons.
// Gets the icon image.
console.log(icon.icon);
// Launch the application:
// icon.launch();
});
`
Run `gulp`` to build and package everything into the dist/ folder.