danieljosephbrennan
/
cloudformation-template-for-lambda-backed-api-gateway-with-vpc-and-redis-cluster
Public
forked from jthomerson/cloudformation-template-for-lambda-backed-api-gateway-with-vpc-and-redis-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
36 lines (25 loc) · 657 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
/**
* Copyright (c) 2016 Jeremy Thomerson
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
var pkg = grunt.file.readJSON('package.json'),
zipName = grunt.option('zip-name') || (pkg.name + '.zip'),
config;
config = {
zip: {
include: [ 'index.js', 'src/**/*', 'node_modules/**/*' ],
dest: 'dist/' + zipName,
},
};
grunt.initConfig({
pkg: pkg,
config: config,
zip: {
'<%= config.zip.dest %>': [ '<%= config.zip.include %>' ],
},
});
grunt.loadNpmTasks('grunt-zip');
grunt.registerTask('default', [ 'zip' ]);
};