module.exports = function(grunt) {

	grunt.initConfig({
	  "babel": {
	    background: {
        options: {
          sourceMap: false
        },
	      files: [{
          "expand": true,
          "cwd": "modules/background/",
          "src": ["**/*.js"],
          "dest": "client/logic/background",
          "ext": ".js"
	      }]
	    },
      client: {
        options: {
          sourceMap: true
        },
        files: [{
          "expand": true,
          "cwd": "modules/client/app/",
          "src": ["**/*.js"],
          "dest": "client/app/",
          "ext": ".js"
        }]
      }
	  },
    eslint: {
      target: ["./modules/**/*.js"]
    },
    uglify: {
      client: {
        options: {
          sourceMap: true,
          sourceMapName: 'client/assets/js/main.map'
        },
        files: {
          'client/assets/js/main.min.js': ['client/assets/js/main.js']
        }
      }
    },
    jade: {
      debug: {
        options: {
          data: {
            debug: true
          },
          pretty: true
        },
        files: {
          "debug/index.html": ["modules/client/app/index/content.jade"],
          "debug/folders.html": ["modules/client/app/folders/folders.jade"]
        }
      },
      release: {
        options: {
          data: {
            debug: false
          },
          pretty: false
        },
        files: {
          "client/app/index/index.html": ["modules/client/app/index/content.jade"],
          "client/app/folders/folders.html": ["modules/client/app/folders/folders.jade"]
        },
        compile: {
          expand: true
        }
      }
    },
    jsonmin: {
      build: {
        options: {
          stripWhiteSpace: true,
          stripComments: true
        },
        files: {
          "client/config/app_configuration.min.JSON": "modules/JSON/app_configuration.JSON",
          "client/config/window_configuration.min.JSON": "modules/JSON/window_configuration.JSON"
        }
      }
    },
    concat: {
      options: {
        separator: ";",
      },
      dist: {
        src: ["modules/client/assets/js/tmp/*.js"],
        dest: "client/assets/js/main.js",
      }
    },
    cssmin: {
      main: {
        src: "modules/client/assets/css/main.css",
        dest: "client/assets/css/main.min.css"
      }
    },
    clean: {
      tmp: ['modules/client/assets/js/tmp']
    },
	  watch: {
	  	background: {
	  		files: ["./modules/background/**/*.js"],
	  		tasks: ["eslint", "babel"],
	  		options: {
          spawn: false
        },
	  	},
      client: {
        files: ["./modules/client/**/*.js"],
        tasks: ["eslint", "babel:client", "concat", "clean"],
        options: {
          spawn: false
        },
      },
      jade: {
        files: ["./modules/**/*.jade"],
        tasks: ["jade"],
        options: {
          spawn: false
        }
      },
      json: {
        files: ["./modules/**/*.JSON"],
        tasks: ["jsonmin"],
        options: {
          spawn: false
        }
      },
      css: {
        files: ["./modules/**/*.css"],
        tasks: ["cssmin"],
        options: {
          spawn: false
        }
      }
	  }
	});
  grunt.loadNpmTasks("grunt-babel");
	grunt.loadNpmTasks("grunt-eslint");
  grunt.loadNpmTasks("grunt-jsonmin");
  grunt.loadNpmTasks("grunt-contrib-jade");
	grunt.loadNpmTasks("grunt-contrib-watch");
  grunt.loadNpmTasks("grunt-contrib-clean");
  grunt.loadNpmTasks("grunt-contrib-concat");
  grunt.loadNpmTasks("grunt-contrib-uglify");
  grunt.loadNpmTasks("grunt-contrib-cssmin");
	grunt.registerTask("default", ["clean", "eslint", "babel", "jade", "jsonmin", "cssmin", "concat", "clean", "uglify", "watch"]);

  //# sourceMappingURL=/path/to/file.js.map
};
@@ -726,24 +726,38 @@
    sourceMap
+IncludeSources
 : true,%0A    
@@ -775,41 +775,62 @@
 eMap
-Name: 'client/assets/js/main.map'
+: function(path) %7B return path.replace(/.js/,%22.map%22)%7D 
 %0A   
@@ -844,32 +844,33 @@
 %0A        files: 
+%5B
 %7B%0A          'cli
@@ -869,68 +869,133 @@
     
-'client/assets/js/main.min.js': %5B'client/assets/js/ma
+expand: true,%0A          cwd: %22client/app/%22,%0A          src: %22**/*.js%22,%0A          dest: %22client/app/%22,%0A          ext: %22.m
 in.js
-'%5D
+%22
 %0A   
@@ -992,32 +992,33 @@
 in.js%22%0A        %7D
+%5D
 %0A      %7D%0A    %7D,%0A

change more general uglify