'use strict';


module.exports = function compress(grunt) {
    // Load task
    grunt.loadNpmTasks('grunt-contrib-compress');

    return {
        'hmda-edit-check-api': {
            options: {
                archive: './dist/hmda-edit-check-api.zip',
                mode: 'zip',  //zip | gzip | deflate | tgz
                pretty: true
            },
            files: [
                {
                    expand: true,
                    cwd: './',

                    //zip all files except coverage, test dirs and the grunt/test modules
                    src: [ '**',
                        '!coverage/**',
                        '!test/**',
                        '!node_modules/**'
                    ]
                }
            ]
        },
        'codedeploy': {
          options: {
            archive: './dist/hmda-edit-check-api-codedeploy.zip',
            mode: 'zip',  //zip | gzip | deflate | tgz
            pretty: true
          },
          files: [
            {
              expand: true,
              dot: true,
              cwd: './',

              //zip dist directory
              src: ['dist/hmda-edit-check-api.zip', 'scripts/*', 'appspec.yml']
            }
          ]
        }
    };
};

'use strict';


module.exports = function compress(grunt) {
    // Load task
    grunt.loadNpmTasks('grunt-contrib-compress');

    return {
        'hmda-edit-check-api': {
            options: {
                archive: './dist/hmda-edit-check-api.zip',
                mode: 'zip',  //zip | gzip | deflate | tgz
                pretty: true
            },
            files: [
                {
                    expand: true,
                    cwd: './',

                    //zip all files except coverage, test dirs and the grunt/test modules
                    src: [ '**',
                        '!data/**',
                        '!coverage/**',
                        '!test/**',
                        '!node_modules/**'
                    ]
                }
            ]
        },
        'codedeploy': {
          options: {
            archive: './dist/hmda-edit-check-api-codedeploy.zip',
            mode: 'zip',  //zip | gzip | deflate | tgz
            pretty: true
          },
          files: [
            {
              expand: true,
              dot: true,
              cwd: './',

              //zip dist directory
              src: ['dist/hmda-edit-check-api.zip', 'scripts/*', 'appspec.yml']
            }
          ]
        }
    };
};

Exclude data from the deploy for now
Exclude data from the deploy for now
