-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
43 lines (37 loc) · 902 Bytes
/
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
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
node_version: {
options: {
}
},
lambda_invoke: {
default: {
options: {
event: 'test/event.json'
}
}
},
lambda_package: {
default: {
options: {
// Task-specific options go here.
}
}
},
lambda_deploy: {
default: {
arn: 'arn:aws:lambda:us-east-1:748801462010:function:pagerduty-alexa-skill',
options: {
// Task-specific options go here.
}
}
}
});
grunt.loadNpmTasks('grunt-aws-lambda');
grunt.loadNpmTasks('grunt-node-version');
grunt.registerTask('default', ['invoke']);
grunt.registerTask('invoke', ['node_version', 'lambda_invoke']);
grunt.registerTask('deploy', ['node_version', 'lambda_package', 'lambda_deploy']);
};