module.exports = function(grunt){
	
	grunt.initConfig({
		uglify: {
			
			options: {
				mangle: true,
				compress: true,
				sourceMap: 'dest/beagle.map',
			},
			target: {
				src: 'src/main.js',
				dest: 'dest/beagle.min.js'
			}
			
		},
		watch: {
			script: {
				files: ['src/*.js'],
				tasks: ['uglify'],
				options: {
					livereload: 3111
				}
			}
		}
	});
	
	
	grunt.loadNpmTasks('grunt-contrib-uglify');
	grunt.loadNpmTasks('grunt-contrib-watch');
	
	grunt.registerTask("default", ['concat', 'uglify']);
	
}

module.exports = function(grunt){
	
	grunt.initConfig({
		
		/*
		concat: {
			
			options: {
				
				seperator: ";"
				
			},
			
			target: {
				
				src: [],
				dest: "dest/main.js"
				
			}
			
			
		},
		*/
		
		uglify: {
			
			options: {
				mangle: true,
				compress: true,
				sourceMap: 'dest/beagle.map',
			},
			
			target: {
				src: 'src/main.js',
				dest: 'dest/beagle.min.js'
			}
			
		},
		
		watch: {
		
			script: {
			
				files: ['src/*.js'],
				tasks: ['uglify'],
				options: {
					livereload: 3111
				}
				
			}
			
		}
		
	});
	
	
	grunt.loadNpmTasks('grunt-contrib-uglify');
	grunt.loadNpmTasks('grunt-contrib-watch');
	
	grunt.registerTask("default", ['uglify']);
	
}

delete not used tasks