# grunt-marketplace

> Grunt plugin to validate and publish webapps to the Firefox OS Marketplace

Latest version **0.1.3** (published 2016-02-21) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install grunt-marketplace
pnpm add grunt-marketplace
yarn add grunt-marketplace
bun add grunt-marketplace
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2016-02-21 |
| First published | 2015-06-23 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Martin Giger |
| Maintainers | freaktechnik |
| Keywords | gruntplugin, Firefox OS, firefox marketplace |

## Links

- npm: https://www.npmjs.com/package/grunt-marketplace
- Repository: https://github.com/freaktechnik/grunt-marketplace
- Issues: https://github.com/freaktechnik/grunt-marketplace/issues
- npm.io page: https://npm.io/package/grunt-marketplace

## Dependencies (2)

- [async](https://npm.io/package/async.md) ^0.9.0
- [fx-marketplace-publish](https://npm.io/package/fx-marketplace-publish.md) ^0.1.1

## Recent versions

- 0.1.3 (latest) — 2016-02-21
- 0.1.2 — 2015-06-24
- 0.1.1 — 2015-06-23
- 0.1.0 — 2015-06-23

## README

# grunt-marketplace
> Grunt plugin to validate and publish webapps to the Firefox OS Marketplace.

Currently WIP (mainly because the underlying module doesn't support packaged apps yet).

## Getting Started
This plugin requires Grunt `~0.4.5`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-marketplace --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-marketplace');
```

## The "webapp" task

### Overview
In your project's Gruntfile, add a section named `marketplace` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  marketplaceCreds: grunt.file.readJSON('credentials.json'),
  marketplace: {
    options: {
      consumerKey: '<%= marketplaceCreds.key %>',
      consumerSecret: '<%= marketplaceCreds.secret %>',
      environment: 'production'
    },
    web: [
      'manifest.webapp'
    ]
  },
});
```

### Options

#### options.consumerKey
Type: `String`
Default value: none

Your marketplace API key. To avoid writing the key and secret directly into your code, consider loading them from a json file, like in the code above. If you don't have API keys yet, go to the [Firefox Marketplace API Page](https://marketplace.firefox.com/developers/api) and generate a key and secret for a command line application.

#### options.consumerSecret
Type: `String`
Default value: none

Your marketplace API secret for the key. To avoid writing the key and secret directly into your code, consider loading them from a json file, like in the code above. If you don't have API keys yet, go to the [Firefox Marketplace API Page](https://marketplace.firefox.com/developers/api) and generate a key and secret for a command line application.

#### options.environment
Type: `String`
Default value: `'production'`

Which instance of the Firefox Marketplace to use. `'production'` is the normal one, hosted at http://marketplace.firefox.com, while `'development'` is for the [Beta Firefox Market Place](https://marketplace-dev.allizom.org/).

#### options.target
Type: `String`
Default value: Name of the grunt target if it's a valid target name, else `'web'`

What kind of app to push to the marketplace. Can be `'web'` for a hosted app with a `manifest.webapp` or `'packaged'` for a packaged app.

---
_Source: https://npm.io/package/grunt-marketplace · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
