1.0.3 • Published 8 years ago

grunt-sentry-release v1.0.3

Weekly downloads
20
License
MIT
Repository
-
Last release
8 years ago

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

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago