-
Notifications
You must be signed in to change notification settings - Fork 3
/
Gruntfile.js
50 lines (38 loc) · 1.02 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
* grunt-sentry-files
* https://github.com/sundarasan/grunt-sentry-release
*
* Copyright (c) 2016 Sundarasan
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
var buildId = new Date().getTime();
// Project configuration.
grunt.initConfig({
buildId: buildId,
// Configuration to be run (and then tested).
sentry_files: {
one: {
organisation: 'sundarasan',
authorisationToken: 'b870d2fc440c4c5ba4e2f504fd96e6ce4e683f1500d24fb4a50035a2c4c3b47d',
project: 'test-project',
releaseId: '<%= buildId %>',
files: [
{
file: 'test/artifacts/sample1.js',
name: '~/js/sample1.js',
},
{
file: 'test/artifacts/sample1.js.map',
name: '~/js/sample1.js.map',
},
],
},
},
});
// Actually load this plugin's task(s).
grunt.loadTasks('tasks');
grunt.registerTask('test', ['sentry_files']);
grunt.registerTask('default', ['test']);
};