/*global module:false*/
module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    // Task configuration.
    jshint: {
      options: {
        curly: true,
        eqeqeq: true,
        latedef: 'nofunc', // Allow function definitions after their use.
        noarg: true,
        undef: true,
        unused: 'vars',
        // Deprecated relaxers
        sub: true,
        multistr: true
      },
      gruntfile: {
        src: 'Gruntfile.js'
      },
      frontend: {
        options: {
          browser: true,
          globals: {
            define: false,
            App: false
          }
        },
        src: ['public/**/*.js', '!public/js/debug.js', 'views/**/*.js']
      },
      backend: {
        options: {
          node: true
        },
        src: ['**/*.js', '!public/**/*.js', '!views/**/*.js', '!bower_components/**', '!node_modules/**']
      }
    },
    less: {
      // The following lines are derived from Bootstrap's Gruntfile:
      /*!
       * Bootstrap's Gruntfile
       * http://getbootstrap.com
       * Copyright 2013-2015 Twitter, Inc.
       * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
       */
      options: {
        strictMath: true,
        outputSourceFiles: true
      },
      file: {src: 'views/current/less/main.less', dest: 'views/current/css/pulldasher.css'},
      file: {src: 'views/current/less/theme-light.less', dest: 'views/current/css/theme-light.css'},
      file: {src: 'views/current/less/theme-dark.less', dest: 'views/current/css/theme-dark.css'}
      // END derived lines
    },

    watch: {
      less: {
        options: {
          spawn: false
        },
        files: ['views/**/*.less', 'less/*.less', 'public/**/*.less'],
        tasks: 'less'
      }
    },
  });

  // These plugins provide necessary tasks.
  grunt.loadNpmTasks('grunt-contrib-less');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-watch');

  // Default task.
  grunt.registerTask('default', ['jshint:backend', 'less']);

};

@@ -1285,39 +1285,64 @@
    %7D,%0A      file
+s
 : %7B
-src:
+%0A         src: %5B%0A           
  'views/current/
@@ -1361,249 +1361,195 @@
 ss',
- dest: 'views/current/css/pulldasher.css'%7D,%0A      file: %7Bsrc: 'views/current/less/theme-light.less', dest: 'views/current/css/theme-light.css'%7D,%0A      file: %7Bsrc: 'views/current/less/theme-dark.less', dest: 'views/current/css/theme-dark.css'
+%0A            'views/current/less/themes/*.less'%0A         %5D,%0A         expand: true,%0A         rename: function(dest, src) %7B%0A            return src.replace(/less/g, 'css');%0A         %7D%0A      
 %7D%0A  

Fix grunt file parsing