module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    
    uglify: {
      
      options: {
        manage: false
      },
      
      finger_print: {
        files:{
           'js/wc-cybersource-device-fingerprint.min.js' : [ 'js/wc-cybersource-device-fingerprint.js' ]
        }
      },
      receipt: {
        files:{
           'js/wc-cybersource-receipt.min.js' : [ 'js/wc-cybersource-receipt.js' ]
        }
      },
      script: {
        files:{
           'js/wc-cybersource-script.min.js' : [ 'js/wc-cybersource-script.js' ]
        }
      },
      rest_js: {
        files:{
           'js/wc-cybersource-soap-script.min.js' : [ 'js/wc-cybersource-soap-script.js' ]
        }
      },
      sop_js: {
        files:{
           'js/wc-cybersource-payment-sop.min.js' : [ 'js/wc-cybersource-payment-sop.js' ]
        }
      }

    },

    cssmin:{
      receipt : {
        files: [{
          expand:true,
          cwd: 'css/',
          src: ['*.css', '!*.min.css'],
          dest: 'css/',
          ext: '.min.css'
        }]
      }
    }

  });

  // Load the plugin that provides the "uglify" task.
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-cssmin');

  // Default task(s).
  grunt.registerTask('default', ['uglify']);

};