module.exports = function(grunt) {

    // load all grunt tasks matching the `grunt-*` pattern
    require('load-grunt-tasks')(grunt);

    grunt.initConfig({
      pkg: grunt.file.readJSON('package.json'),

      concat: {
        dist: {
          src: [
          'js/*.js'
          ],
          dest: 'js/build/production.js',
        }
      },

      uglify: {
        build: {
          src: 'js/build/production.js',
          dest: 'js/build/production.min.js'
        }
      },

      sass: {
        dist: {
          options: {
            style: 'expanded'
          },
          files: [{
            expand: true,
            cwd: 'css/scss/partials',
            src: ['*.scss'],
            dest: 'css/partials',
            ext: '.css'
          }], 'main.css': 'main.scss',
        },
        dev: {
          files: [{'css/main.css': 'css/scss/main.scss'}]
        }
      },

      autoprefixer: {
        prefix: {
          src: 'css/main.css',
          dest: 'css/main.css'
        },
      },

      cssmin: {
        combine: {
          files: {
            'css/main.min.css': [ 'css/main.css' ]
          }
        }
      },

      imagemin: {
        dynamic: {
          files: [{
            expand: true,
            cwd: 'images/orig_assets',
            src: ['*.{png,jpg,gif}'],
            dest: 'images'
          }]
        }
      },

      watch: {
        scripts: {
          files: ['js/*.js'],
          tasks: ['concat', 'uglify'],
          options: {
            livereload: true
          }
        },
        css: {
          files: ['css/scss/globals/*.scss','css/scss/partials/*.scss','css/scss/theme/*.scss'],
          tasks: ['sass', 'cssmin', 'autoprefixer'],
          options: {
            livereload: true
          }
        },
      }

    });

grunt.loadNpmTasks('grunt-contrib');

grunt.registerTask('build', ['concat', 'uglify', 'sass', 'autoprefixer', 'cssmin', 'imagemin', 'watch']);
grunt.registerTask('dev', ['concat', 'uglify', 'sass', 'autoprefixer', 'cssmin', 'watch']);
grunt.registerTask('js', ['concat', 'uglify', 'watch']);
grunt.registerTask('css', ['sass', 'autoprefixer', 'cssmin', 'watch']);
grunt.registerTask('default', ['watch']);

};

@@ -1383,24 +1383,81 @@
    watch: %7B%0A
+        options: %7B%0A          livereload: true%0A        %7D,%0A
         scri
@@ -1459,24 +1459,24 @@
  scripts: %7B%0A
-
           fi
@@ -1536,70 +1536,8 @@
 '%5D,%0A
-          options: %7B%0A            livereload: true%0A          %7D%0A
     
@@ -1720,72 +1720,9 @@
     
-  options: %7B%0A            livereload: true%0A          %7D%0A        %7D,
+%7D
 %0A   

scrub gruntfile