Installation
Install package with NPM and add it to your development dependencies:
npm install --save-dev gulp-freemius-deploy
Usage
gulp-freemius-deploy
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 = ; 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: true ;
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:
You can then include it in your gulpfile:
var gulp = fs_config = ; gulp developer_id: fs_configdeveloper_id plugin_id: fs_configplugin_id public_key: fs_configpublic_key secret_key: fs_configsecret_key zip_name: 'your-zip-to-deploy.zip' zip_path: 'dist/' add_contributor: true ;
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-deploy