'use strict';

module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    // Metadata.
    pkg: grunt.file.readJSON('bower.json'),
    banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
      '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
      '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
      '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
      ' Licensed <%= pkg.licenses.map(function(l){ return l.type;}).join(", ") %> */\n',
    // Task configuration.
    clean: {
      files: ['dist']
    },
    concat: {
      options: {
        banner: '<%= banner %>',
        stripBanners: true
      },
      dist: {
        src: ['src/<%= pkg.name %>.js'],
        dest: 'dist/<%= pkg.name %>.js'
      },
      plus: {
        src: ['src/<%= pkg.name %>.js', 'src/toCase.js'],
        dest: 'dist/<%= pkg.name %>.plus.js'
      }
    },
    uglify: {
      options: {
        banner: '<%= banner %>',
        sourceMap: true
      },
      dist: {
        src: '<%= concat.dist.dest %>',
        dest: 'dist/<%= pkg.name %>.min.js'
      },
      plus: {
        src: '<%= concat.plus.dest %>',
        dest: 'dist/<%= pkg.name %>.plus.min.js'
      },
    },
    qunit: {
      files: ['test/**/*.html']
    },
    jshint: {
      gruntfile: {
        options: {
          jshintrc: '.jshintrc'
        },
        src: 'Gruntfile.js'
      },
      src: {
        options: {
          jshintrc: 'src/.jshintrc'
        },
        src: ['src/**/*.js']
      },
      test: {
        options: {
          jshintrc: 'test/.jshintrc'
        },
        src: ['test/**/*.js']
      },
    },
    watch: {
      gruntfile: {
        files: '<%= jshint.gruntfile.src %>',
        tasks: ['jshint:gruntfile']
      },
      src: {
        files: '<%= jshint.src.src %>',
        tasks: ['jshint:src', 'qunit']
      },
      test: {
        files: '<%= jshint.test.src %>',
        tasks: ['jshint:test', 'qunit']
      },
    },
    jasmine: {
      all: 'src**/*.js',
      options: {}
    },
    nugetpack: {
        dist: {
            src: 'Case.nuspec',
            dest: 'dist/',
            options: {
              version: '<%= pkg.version %>'
            }
        }
    },
    nugetpush: {
        dist: {
            src: 'dist/Case.<%= pkg.version %>.nupkg'
        }
    }
  });

  // These plugins provide necessary tasks.
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-contrib-concat');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-qunit');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-jasmine');
  grunt.loadNpmTasks('grunt-notify');
  grunt.loadNpmTasks('grunt-nuget');

  // Default task.
  grunt.registerTask('default', ['jshint', 'clean', 'concat', 'qunit', 'uglify']);
  grunt.registerTask('test', ['jasmine']);
  grunt.registerTask('nuget', ['nugetpack', 'nugetpush']);

};

@@ -2017,73 +2017,8 @@
  %7D,%0A
-    jasmine: %7B%0A      all: 'src**/*.js',%0A      options: %7B%7D%0A    %7D,%0A
     
@@ -2634,93 +2634,8 @@
 ');%0A
-  grunt.loadNpmTasks('grunt-contrib-jasmine');%0A  grunt.loadNpmTasks('grunt-notify');%0A
   gr
@@ -2774,51 +2774,8 @@
 %5D);%0A
-  grunt.registerTask('test', %5B'jasmine'%5D);%0A
   gr

remove unused tasks