/grunt-deploygate

Grunt plugin for File upload to deploygate

Primary LanguageJavaScriptMIT LicenseMIT

grunt-deploygate

Grunt plugin for File upload to Deploygate

Getting Started

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-deploygate --save-dev

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

grunt.loadNpmTasks('grunt-deploygate');

The "deploygate" task

Overview

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

grunt.initConfig({
  deploygate: {
    src:'location/to/file',
    options: {
      // Task-specific options go here.
    }
  },
});

Usage Examples

Default Usage

grunt.initConfig({
deploygate: {
            src: 'location/to/file',
            options: {
                url: "https://deploygate.com/api/users/[owner_name]/apps",
                paramObj: {
                    'token': "API_Key"
                }
            }
        }
});

paramObj

paramObj.token

Type: String Default value: ''

Required

paramObj.message

Type: String Default value: ''

(Optional) Push message

paramObj.distribution_key

Type: String Default value: ''

Replace [distribution_key] with your distribution page URL hash key. https://deploygate.com/distributions/[distribution_key]

paramObj.release_note

Type: String Default value: ''

(Optional) Distribution message

paramObj.disable_notify

Type: String Default value: ''

(Optional) If you set yes as a value, disable notify via email.(iOS only.)

paramObj.visibility

Type: String Default value: 'private'

(Optional) Set a new application's privacy setting by specifying private(default) or public. If you are using Personal Free account, you have to specify public to upload a new app since it doesn't have a slot for private app. No effect when updating.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

(Nothing yet)