module.exports = function (grunt) {
	grunt.loadNpmTasks('grunt-contrib-copy');
	grunt.loadNpmTasks('grunt-contrib-jshint');
	grunt.loadNpmTasks('grunt-contrib-concat');
	grunt.loadNpmTasks('grunt-contrib-uglify');
	grunt.loadNpmTasks('grunt-contrib-connect');
	grunt.loadNpmTasks('grunt-contrib-qunit');
	grunt.loadNpmTasks('grunt-contrib-yuidoc');
	grunt.loadNpmTasks('grunt-vows');
	grunt.loadNpmTasks('grunt-lmd');

	//Project Configuration
	grunt.initConfig({
		pkg: grunt.file.readJSON('package.json'),
		copy: {
			client: {
				files: [{
						expand: true,
						cwd: 'client',
						src: [
							'index.html',
							'assets/**',
							'css/**',
							'replays/**'
						],
						dest: 'client-build'
					}
				]
			}
		},
		jshint: {
			all: {
				src: ['.']
			}
		},
		lmd: {
			build_name: 'client'
		},
		vows: {
			all: {
				options: {
					reporter: "spec"
				},
				src: ["tests/server/**/*.js"]
			}
		},
		connect: {
			qunit: {
				options: {
					port: process.env.PORT || 8081,
					base: './'
				}
			},
			test: {
				options: {
					port: process.env.PORT || 8081,
					base: './',
					keepalive: true
				}
			}
		},
		qunit: {
			all: {
				options: {
					urls: ['http://localhost:' + (process.env.PORT || 8081) + '/tests/client/index.html']
				}
			}
		}
	});

	//Load tasks
	grunt.registerTask('default', ['build', 'test']);
	grunt.registerTask('build', ['jshint', 'copy', 'lmd']);
	grunt.registerTask('test', ['vows', 'connect:qunit', 'qunit']);
};
@@ -539,12 +539,10 @@
 es: 
-%5B
 %7B%0A
-%09
 %09%09%09%09
@@ -556,17 +556,16 @@
 : true,%0A
-%09
 %09%09%09%09%09cwd
@@ -585,17 +585,15 @@
 %09%09%09%09
-%09
 src: %5B%0A
-%09
 %09%09%09%09
@@ -614,17 +614,16 @@
 ,%0A%09%09%09%09%09%09
-%09
 'assets/
@@ -623,25 +623,24 @@
 assets/**',%0A
-%09
 %09%09%09%09%09%09'css/*
@@ -649,17 +649,16 @@
 ,%0A%09%09%09%09%09%09
-%09
 'replays
@@ -662,17 +662,16 @@
 ays/**'%0A
-%09
 %09%09%09%09%09%5D,%0A
@@ -675,17 +675,16 @@
 %5D,%0A%09%09%09%09%09
-%09
 dest: 'c
@@ -704,16 +704,9 @@
 %09%09%09%09
-%09%7D%0A%09%09%09%09%5D
+%7D
 %0A%09%09%09

fix ident in gruntfile