module.exports = function (grunt) {
	
	// Configuration passing an object to initConfig
	grunt.initConfig({
		// pass in options to plugins, references to files etc...
		concat: {
			// css concatenation
			css: {
				// source
				src: ['css/*.css'],

				// destination
				dest: 'build/main.css'
			},
			// js concatenation
			js: {
				// source
				src: ['js/app.js','js/index.js'],
				// src: ['js/*.js'] to specify all

				// destination
				dest: 'build/scripts.js'
			}
		},

		// Uglify
		uglify: {
			// Basic compression
			my_target: {
				files: {
					
					'build/jscompressed.js': 'build/scripts.js'
					// if we want to minify two files we need 
					// to use an array
				}
			}
		}
		
	});

	// Load plugins to the file
	grunt.loadNpmTasks('grunt-contrib-concat');

	// Uglify - Minifying css and js files
	grunt.loadNpmTasks('grunt-contrib-uglify');

	grunt.registerTask('all', ['concat','uglify']);

};