Skip to content

dafortune/grunt-sentry-release

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grunt Sentry release

Getting Started

This plugin requires Grunt >=1.0.0

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-sentry-release --save-dev

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

grunt.loadNpmTasks('grunt-sentry-release');

Overview

This Grunt plugin uses Sentry Release API to publish releases from a Grunt task.

Usage

  grunt.initConfig({
    grunt_sentry_release: {
      test: {
        // API Key: required scopes project:read, project:write, project:delete
        apiKey: '{api-key}',

        // Organization slug
        organization: '{organization}',

        // Project slug
        project: '{project}',

        // Version string
        version: '{version}',

        // Array of files to use
        files: { src: [...] },

        // Returns name for file in Sentry
        resultName: function(fileName) {
          ...
        }
      }
    }
  });

Example

  grunt.initConfig({
    grunt_sentry_release: {
      test: {
        apiKey: '...',
        organization: 'fortune',
        project: 'test',
        version: '1.0.0',
        files: { src: ['./test/fixture/release.test'] },
        resultName: function(file) {
          return file;
        }
      }
    }
  });

TODO

[ ] Add tests

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published