1.0.1 • Published 2 years ago

gulp-freemius-deployer v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Gulp Freemius Deployer

Deploy Freemius plugin using Gulp

This is based on Gulp Freemius Deploy. Since the repo has not been updated since long, I have copied the code and fixed a couple of bugs.

Installation

Install package with NPM and add it to your development dependencies:

npm install --save-dev gulp-freemius-deployer

Usage

gulp-freemius-deployer is a task module that can be run via the command line.

In its most basic form, the configuration would look like this:

var gulp = require( 'gulp' );

require( 'gulp-freemius-deployer' )( gulp, {
  developer_id: 000,
  plugin_id: 000,
  public_key: 'pk_*****',
  secret_key: 'sk_*****',
  zip_name: 'your-zip-to-deploy.zip',
  zip_path: 'dist/',
  add_contributor: false
} );

If your gulpfile.js is in a public repository, you may want to abstract the developer_id, plugin_id, secret_key, and public_key. You can do this by creating a git ignored fs-config.json file like so:

{
  "developer_id": 000,
  "plugin_id": 000,
  "public_key": "pk_*****",
  "secret_key": "sk_*****"
}

You can then include it in your gulpfile:

var gulp = require( 'gulp' ),
    fs_config = require( './fs-config.json' );

require( 'gulp-freemius-deployer' )( gulp, {
  developer_id: fs_config.developer_id,
  plugin_id: fs_config.plugin_id,
  public_key: fs_config.public_key,
  secret_key: fs_config.secret_key,
  zip_name: 'your-zip-to-deploy.zip',
  zip_path: 'dist/',
  add_contributor: false
} );

You can find your developer_id, secret_key, and public_key in your Freemius profile.

Once configured, simply run this from the command line to deploy your zip to freemius:

gulp freemius-deployer

1.0.1

2 years ago

1.0.0

2 years ago