module.exports = function(grunt) {


grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),

    concat: {
    		css: {
    			files:{
    				'./css-concat/home.css': [
			            './css/vendors/*.css',
			            './css/slideshows-chocolat.css',
			            './css/vendors/chocolat.css',
			            './css/main.css', 
			            './css/include/*.css',
			            './css/fullscreenplayer.css'
			            
				        ],
				    './css-concat/articles.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/filters.css',
			            './css/articles.css'
			            
				        ],
				    './css-concat/communiques.css': [
				    	'./css/filters.css',
			            './css/main.css', 
			            './css/include/*.css',
			            './css/articles.css',
			            './css/press.css'
			            
				        ],
				    './css-concat/events.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/filters.css',
			            './css/articles.css'
			            
				        ],
				    './css-concat/trailer.css': [
			            './css/vendors/*.css',
			            './css/main.css', 
			            './css/include/*.css',
			            './css/slideshow-video.css',
			            './css/webtv.css',
			            './css/fullscreenplayer.css'
			            
				        ],
				  	'./css-concat/channel.css': [
			            './css/vendors/*.css',
			            './css/main.css', 
			            './css/include/*.css',
			            './css/slideshow-video.css',
			            './css/webtv.css',
			            './css/fullscreenplayer.css'
			            
				        ],
				    './css-concat/channels.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/grid-isotope.css',
			            './css/webtv.css'
				        ],
				    './css-concat/faq.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/horizontal-menu.css',
			            './css/accordeon.css',
			            './css/faq.css'
				        ],
				    './css-concat/jury.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/horizontal-menu.css',
			            './css/selection.css',
			            './css/jurys.css'
				        ],
				    './css-concat/movie.css': [
			            './css/main.css',
			            './css/movie.css',
			            './css/slideshows-chocolat.css',
			            './css/vendors/chocolat.css',
			            './css/include/*.css',
			            './css/audioplayer.css',
			            './css/fullscreenplayer.css',
			            './css/slideshow-video.css'
			        ],
			        './css-concat/article.css': [
			            './css/main.css',
			            './css/slideshows-chocolat.css',
			            './css/vendors/chocolat.css',
			            './css/include/*.css',
			            './css/article.css',
			            './css/audioplayer.css',
			            './css/fullscreenplayer.css',
			            './css/slideshow-video.css'
			        ],
				    './css-concat/artist.css': [
			            './css/main.css',
			            './css/include/*.css',
			            './css/article.css',
			            './css/slideshow-video.css',
			            './css/artist.css'
			            
				    ],			     
			     	'./css-concat/event.css': [
			            './css/main.css',
			            './css/slideshows-chocolat.css',
			            './css/vendors/chocolat.css',
			            './css/include/*.css',
			            './css/article.css',
			            './css/audioplayer.css',
			            './css/fullscreenplayer.css',
			            './css/slideshow-video.css'
			        ],
			        './css-concat/participate.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/participate.css',
			            './css/accordeon.css'
				        ],
				    './css-concat/photos.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/slideshows-chocolat.css',
			            './css/vendors/chocolat.css',
			            './css/filters.css',
			            './css/grid-isotope.css'
				        ],
				    './css-concat/selection.css': [
				    	'./css/main.css',
			            './css/slideshows-chocolat.css',
			            './css/vendors/chocolat.css',
			            './css/include/*.css',
			            './css/audioplayer.css',
			            './css/fullscreenplayer.css',
			            './css/slideshow-video.css',
			            './css/horizontal-menu.css',
			            './css/selection.css'
				        ],
				    './css-concat/videos.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/filters.css',
			            './css/videos.css',
			            './css/fullscreenplayer.css'
				        ],
				    './css-concat/webtv.css': [
			            './css/vendors/*.css',
			            './css/main.css', 
			            './css/include/*.css',
			            './css/webtv.css',
			            './css/fullscreenplayer.css'
				        ],
    				'./css-concat/webtvTrailer.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/grid-isotope.css',
			            './css/horizontal-menu.css'
				        ],
			        './css-concat/audios.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/filters.css',
			            './css/videos.css',
			            './css/fullscreenplayer.css',
			            './css/audioplayer.css'
				        ],
			        './css-concat/contact.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/filters.css',
			            './css/contact.css'
				        ],
			        './css-concat/legals.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/legals.css'
				        ],
				    './css-concat/credits.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/legals.css'
				        ],
				    './css-concat/privacy_policy.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/legals.css'
				        ],
			        './css-concat/sitemap.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/sitemap.css'
				        ],
				    './css-concat/palmares.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/horizontal-menu.css',
			            './css/palmares.css',
			            './css/slideshow-video.css'
				        ],
				    './css-concat/press.css': [
				    	'./css/filters.css',
			            './css/main.css', 
			            './css/include/*.css',
			            './css/slideshow-video.css',
			            './css/programmation.css',
			            './css/press.css'
			            		            
				        ],
				    './css-concat/programmation-press.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/programmation.css',
			            './css/press.css',
			            './css/filters.css'			            
				        ],
					'./css-concat/programmation.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/programmation.css',
			            './css/press.css',
			            './css/filters.css'			            
				        ],
				    './css-concat/searchpage.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/horizontal-menu.css',
			            './css/search.css',
			            './css/searchpage.css',
			            './css/filters.css'           
				        ],
				    './css-concat/search.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/search.css'         
				        ],

				    './css-concat/practical_guide.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/participate.css',
			            './css/accordeon.css',
			            './css/press.css',
			            './css/practical_guide.css'

				        ],
				    './css-concat/calendar-press.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/programmation.css',
			            './css/press.css',
			            './css/my-calendar.css',
	            
				        ],
				    './css-concat/calendar.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/programmation.css',
			            './css/press.css',
			            './css/my-calendar.css',
	            
				        ],
		      
				    './css-concat/press_maps.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/press.css',
			            './css/horizontal-menu.css',
			            './css/press_maps.css'   
				        ],
				    './css-concat/maps.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/press.css',
			            './css/horizontal-menu.css',
			            './css/press_maps.css'   
				        ],

				    './css-concat/press_accreditation.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/press.css',
			            './css/horizontal-menu.css',
			            './css/press_accreditation.css'   
				        ],

				    './css-concat/press_download.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/slideshows-chocolat.css',
			            './css/vendors/chocolat.css',
			            './css/press.css',
			            './css/horizontal-menu.css',
			            './css/press_downloads.css'
				        ],

				    './css-concat/press_medias.css': [
			            './css/main.css', 
			            './css/include/*.css',
			            './css/slideshows-chocolat.css',
			            './css/vendors/chocolat.css',
			            './css/press.css',
			            './css/horizontal-menu.css',
			            './css/press_medias.css'   
				        ]

    			}
		        
    		},
    		js: {
    			files:{
    				'./js-concat/home.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/vendors/jquery.chocolat.js',
				            './js/vendors/hammer.min.js',
				            './js/vendors/jwplayer.js',
				            './js/slideshows-chocolat.js',  
				            './js/include/*.js',
				            './js/main.js',
				            './js/fullscreenplayer.js',
				            './js/home.js',
				            './js/add-to-selection.js'
				        ],
			        './js-concat/articles.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js',
				            './js/filters.js',
				            './js/add-to-selection.js'
				        ],
				    './js-concat/communiques.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js',
				            './js/filters.js',
				            './js/horizontal-filters.js',
				            './js/communiques.js',
				            
				            './js/press.js',

				        ],
				    './js-concat/events.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js',
				            './js/filters.js'
				        ],
				    './js-concat/trailer.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/vendors/jwplayer.js',
				            './js/include/*.js',
				            './js/webtv.js',
				            './js/slidervideos.js',
				            './js/trailer.js'
				        ],
				    './js-concat/channel.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/vendors/jwplayer.js',
				            './js/include/*.js',
				            './js/webtv.js',
				            './js/slidervideos.js',
				            './js/channel.js',
				            './js/fullscreenplayer.js'
				        ],
			        './js-concat/channels.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/vendors/isotope.pkgd.min.js',
				            './js/vendors/packery-mode.pkgd.min.js',
				            './js/include/*.js',
				            './js/grid-isotope.js'
				        ],
			        './js-concat/faq.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js',
				            './js/horizontal-menu.js',
				            './js/accordeon.js'
				        ],
			        './js-concat/jury.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js',
				            
				            './js/horizontal-menu.js'
				        ],
			        './js-concat/movie.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/vendors/wavesurfer.min.js',
				            './js/vendors/jquery.chocolat.js',
				            './js/vendors/hammer.min.js',
				            './js/slideshows-chocolat.js',
				            './js/include/*.js',
				            './js/slidervideos.js',
				            './js/audioplayer.js',
				            './js/vendors/jwplayer.js',
				            './js/movie.js',
				            './js/add-to-selection.js'
				        ],
				    './js-concat/article.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/vendors/wavesurfer.min.js',
				            './js/vendors/jquery.chocolat.js',
				            './js/vendors/hammer.min.js',
				            './js/slideshows-chocolat.js',
				            './js/include/*.js',
				            './js/slidervideos.js',
				            './js/audioplayer.js',
				            './js/vendors/jwplayer.js',
				            './js/article.js',
				            './js/add-to-selection.js'
				        ],
				    './js-concat/artist.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js',
				            './js/palmares.js',
				            './js/artist.js'
				        ],				        
				    './js-concat/event.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/vendors/wavesurfer.min.js',
				            './js/vendors/jquery.chocolat.js',
				            './js/vendors/hammer.min.js',
				            './js/slideshows-chocolat.js',
				            './js/include/*.js',
				            './js/slidervideos.js',
				            './js/audioplayer.js',
				            './js/vendors/jwplayer.js',
				            './js/article.js'
				        ],
			        './js-concat/participate.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js',
				            './js/accordeon.js',
				            
				            './js/googlemap.js'
				        ],
			        './js-concat/photos.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js',
				            './js/vendors/jquery.chocolat.js',
				            './js/vendors/hammer.min.js',
				            './js/slideshows-chocolat.js',
				            './js/vendors/isotope.pkgd.min.js',
				            'js/vendors/packery-mode.pkgd.min.js',
				            'js/grid-isotope.js',
				            'js/filters.js'
				        ],
			        './js-concat/selection.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/vendors/wavesurfer.min.js',
				            './js/vendors/jquery.chocolat.js',
				            './js/vendors/hammer.min.js',
				            './js/vendors/jwplayer.js',
				            './js/slideshows-chocolat.js',
				            './js/slidervideos.js',
				            './js/audioplayer.js',
				            './js/vendors/jwplayer.js',
				            './js/include/*.js',
				            
				            './js/horizontal-menu.js',
				            './js/palmares.js',
				            './js/selection.js'
				        ],
				    './js-concat/palmares.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js',
				            
				            './js/horizontal-menu.js',
				            './js/palmares.js',
				        ],
			        './js-concat/videos.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/jwplayer.js',
				            './js/vendors/owl.carousel.min.js',
						    './js/vendors/isotope.pkgd.min.js',
						'js/vendors/packery-mode.pkgd.min.js',

						'./js/include/*.js',
				            './js/filters.js',
				            './js/fullscreenplayer.js',
						'js/grid-isotope.js'


				        ],
			        './js-concat/webtv.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/jwplayer.js',
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js',
				            './js/slidervideos.js',
				            './js/webtv.js',
				            './js/fullscreenplayer.js'
				        ],
				    './js-concat/webtvTrailer.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js',
				            './js/vendors/isotope.pkgd.min.js',
				            './js/vendors/packery-mode.pkgd.min.js',
				            './js/grid-isotope.js',
				            
				            './js/horizontal-menu.js'
				        ],
				    './js-concat/audios.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/vendors/wavesurfer.min.js',
				            './js/include/*.js',
				            './js/filters.js',
				            './js/audioplayer.js',
				            './js/fullscreenplayer.js',


				        ],
				        './js-concat/contact.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js',
				            './js/contact.js'
				        ],
				    './js-concat/legals.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js'
				        ],
				    './js-concat/credits.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js'
				        ],
				    './js-concat/privacy_policy.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js'
				        ],
				    './js-concat/sitemap.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js'
				        ],

				    './js-concat/press.js':[

				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/vendors/jquery.cookie.js',
				            './js/vendors/jquery-ui.custom.min.js',
				            
				   			'./js/vendors/moment.min.js',
				   			'./js/include/*.js',
				            './js/programmation.js',
				            './js/press.js',
				            './js/filters.js'
				        ],
				    './js-concat/programmation-press.js':[

				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/vendors/jquery.cookie.js',
				            './js/vendors/jquery-ui.custom.min.js',
				   			'./js/include/*.js',
				            './js/programmation.js',
				            './js/press.js',
				            './js/filters.js'

				    	],
				    './js-concat/programmation.js':[

				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				   			'./js/include/*.js',
				            './js/programmation.js',
				            './js/filters.js'

				    	],
					'./js-concat/calendar-press.js':[

				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/vendors/jquery.cookie.js',
				            './js/vendors/jquery-ui.custom.min.js',
				   			'./js/include/*.js',
				            './js/my-calendar.js',
				            './js/press.js'

				    	],
					'./js-concat/calendar.js':[

				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				   			'./js/include/*.js',
				            './js/my-calendar.js'

				    	],
				    './js-concat/searchpage.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js',
				            
				            './js/searchpage.js',
				            './js/filters.js'
				        ],

				    './js-concat/search.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js',
				            './js/search.js'
				        ],

				    './js-concat/practical_guide.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				            './js/include/*.js',
				            './js/accordeon.js',
				            './js/press.js'
				        ],
				    './js-concat/press_maps.js':[

				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				   			'./js/include/*.js',
				            './js/vendors/jquery.cookie.js',
				            './js/press.js',
				   			'./js/press_maps.js'

				    	],
				    './js-concat/maps.js':[

				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				   			'./js/include/*.js',
				   			'./js/press_maps.js'

				    	],
				    './js-concat/press_accreditation.js':[

				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				   			'./js/include/*.js',
				            './js/vendors/jquery.cookie.js',
				            './js/press.js',
				   			'./js/press_accreditation.js'

				    	],

				   	'./js-concat/press_download.js':[

				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				   			'./js/include/*.js',
				            './js/vendors/jquery.cookie.js',
				     		'./js/vendors/jquery.chocolat.js',
				            './js/vendors/hammer.min.js',
				            './js/slideshows-chocolat.js',
				            './js/press.js',
				   			'./js/press_download.js'
				   	],

				    './js-concat/press_medias.js':[
				            './js/vendors/jquery-1.12.0.min.js', 
				            './js/vendors/owl.carousel.min.js',
				   			'./js/include/*.js',
				            './js/vendors/jquery.cookie.js',
				            './js/press.js',
				   			'./js/vendors/jquery.chocolat.js',
				            './js/vendors/hammer.min.js',
				            './js/slideshows-chocolat.js',  
				   			'./js/press_medias.js'

				    	],
    			}
		        
    		}
        
    },
    processhtml: {
	    options: {
	      
	    },
	    dist: {
	      files: {
	        './home.html': ['./templates/home.html'],
	        './articles.html': ['./templates/articles.html'],
	        './ba.html': ['./templates/ba.html'],
	        './channels.html': ['./templates/channels.html'],
	        './faq.html': ['./templates/faq.html'],
	        './jury_courtsmetrages.html': ['./templates/jury_courtsmetrages.html'],
	        './jury_longsmetrages.html': ['./templates/jury_longsmetrages.html'],
	        './jury_uncertainregard.html': ['./templates/jury_uncertainregard.html'],
	        './jury_camerador.html': ['./templates/jury_camerador.html'],
	        './movie.html': ['./templates/movie.html'],
	        './article.html': ['./templates/article.html'],
	        './event.html': ['./templates/event.html'],
	        './article-photos.html': ['./templates/article-photos.html'],
	        './article-video.html': ['./templates/article-video.html'],
	        './article-audio.html': ['./templates/article-audio.html'],
	        './article-press.html': ['./templates/article-press.html'],
	        './participate_access.html': ['./templates/participate_access.html'],
	        './participate_instructions.html': ['./templates/participate_instructions.html'],
	        './participate_sejour.html': ['./templates/participate_sejour.html'],
	        './participate_partners.html': ['./templates/participate_partners.html'],
	        './participate_provider.html': ['./templates/participate_provider.html'],
	        './photos.html': ['./templates/photos.html'],
	        './selectionofficielle_competition.html': ['./templates/selectionofficielle_competition.html'],
	        './selectionofficielle_cannesclassic_hommage.html': ['./templates/selectionofficielle_cannesclassic_hommage.html'],
	        './selectionofficielle_cannesclassic_invit.html': ['./templates/selectionofficielle_cannesclassic_invit.html'],
	        './selectionofficielle_cannesclassic_copies.html': ['./templates/selectionofficielle_cannesclassic_copies.html'],
	        './selectionofficielle_cannesclassic_docu.html': ['./templates/selectionofficielle_cannesclassic_docu.html'],
	        './selectionofficielle_cannesclassic_world.html': ['./templates/selectionofficielle_cannesclassic_world.html'],
	        './selectionofficielle_uncertainregard.html': ['./templates/selectionofficielle_uncertainregard.html'],
	        './selectionofficielle_cinemadelaplage.html': ['./templates/selectionofficielle_cinemadelaplage.html'],
	        './selectionofficielle_courtsmetrages.html': ['./templates/selectionofficielle_courtsmetrages.html'],
	        './selectionofficielle_cinefondation.html': ['./templates/selectionofficielle_cinefondation.html'],
	        './selectionofficielle_seancesspeciales.html': ['./templates/selectionofficielle_seancesspeciales.html'],
	        './selectionofficielle_horscompetition.html': ['./templates/selectionofficielle_horscompetition.html'],
	        './videos.html': ['./templates/videos.html'],
	        './webTV.html': ['./templates/webTV.html'],
	        './webtv_trailer_competition.html': ['./templates/webtv_trailer_competition.html'],
	        './webtv_trailer_uncertainregard.html': ['./templates/webtv_trailer_uncertainregard.html'],
	      	'./webtv_trailer_cinemadelaplage.html': ['./templates/webtv_trailer_cinemadelaplage.html'],
	        './webtv_trailer_cannesclassics.html': ['./templates/webtv_trailer_cannesclassics.html'],
	        './webtv_trailer_courtmetrage.html': ['./templates/webtv_trailer_courtmetrage.html'],
	        './webtv_trailer_cinefondation.html': ['./templates/webtv_trailer_cinefondation.html'],
	        './webtv_trailer_seancesspeciales.html': ['./templates/webtv_trailer_seancesspeciales.html'],
	        './webtv_trailer_horscompetition.html': ['./templates/webtv_trailer_horscompetition.html'],
	        './audios.html': ['./templates/audios.html'],
	        './contact.html': ['./templates/contact.html'],
	        './legals.html': ['./templates/legals.html'],
	        './privacy_policy.html': ['./templates/privacy_policy.html'],
	        './credits.html': ['./templates/credits.html'],
	        './sitemap.html': ['./templates/sitemap.html'],
	        './events.html': ['./templates/events.html'],
	        './channel.html': ['./templates/channel.html'],
	        './palmares_competition.html': ['./templates/palmares_competition.html'],
	        './palmares_camerador.html': ['./templates/palmares_camerador.html'],
	        './palmares_uncertainregard.html': ['./templates/palmares_uncertainregard.html'],
	        './palmares_cinefondation.html': ['./templates/palmares_cinefondation.html'],
	        './palmares_all.html': ['./templates/palmares_all.html'],
	        './press.html': ['./templates/press.html'],
	        './search.html': ['./templates/search.html'],
	        './searchpage.html': ['./templates/searchpage.html'],
	        './artist.html': ['./templates/artist.html'],
	        './press_communiques.html': ['./templates/press_communiques.html'],
	        './press_practical_guide.html': ['./templates/press_practical_guide.html'],
	        './press_programmation.html': ['./templates/press_programmation.html'],
	        './programmation.html': ['./templates/programmation.html'],
	        './press_agenda.html': ['./templates/press_agenda.html'],
	        './agenda.html': ['./templates/agenda.html'],
	        './press_maps.html': ['./templates/press_maps.html'],
	        './maps.html': ['./templates/maps.html'],
	        './press_accreditation.html': ['./templates/press_accreditation.html'],
	        './press_download.html': ['./templates/press_download.html'],
	        './press_medias.html': ['./templates/press_medias.html'],
	        './press_medias_courtsmetrages.html': ['./templates/press_medias_courtsmetrages.html'],
	        './press_medias_horscompetition.html': ['./templates/press_medias_horscompetition.html'],
	        './press_medias_uncertainregard.html': ['./templates/press_medias_uncertainregard.html'],
	        './press_medias_seancedeminuit.html': ['./templates/press_medias_seancedeminuit.html'],
	        './press_medias_seancesspeciales.html': ['./templates/press_medias_seancesspeciales.html'],
	        './press_medias_cinefondation.html': ['./templates/press_medias_cinefondation.html'],
	        './press_medias_cannesclassics.html': ['./templates/press_medias_cannesclassics.html'],
	        './press_medias_cinemadelaplage.html': ['./templates/press_medias_cinemadelaplage.html']


	      
	      }
	    },
	    prod:{
	    	files: {
	        './home.html': ['./templates/home.html'],
	        './articles.html': ['./templates/articles.html'],
	        './ba.html': ['./templates/ba.html'],
	        './channels.html': ['./templates/channels.html'],
	        './faq.html': ['./templates/faq.html'],
	        './jury_courtsmetrages.html': ['./templates/jury_courtsmetrages.html'],
	        './jury_longsmetrages.html': ['./templates/jury_longsmetrages.html'],
	        './jury_uncertainregard.html': ['./templates/jury_uncertainregard.html'],
	        './jury_camerador.html': ['./templates/jury_camerador.html'],
	        './movie.html': ['./templates/movie.html'],
	        './article.html': ['./templates/article.html'],
	        './event.html': ['./templates/event.html'],
	        './article-photos.html': ['./templates/article-photos.html'],
	        './article-video.html': ['./templates/article-video.html'],
	        './article-audio.html': ['./templates/article-audio.html'],
	        './article-press.html': ['./templates/article-press.html'],
	        './participate_access.html': ['./templates/participate_access.html'],
	        './participate_instructions.html': ['./templates/participate_instructions.html'],
	        './participate_sejour.html': ['./templates/participate_sejour.html'],
	        './participate_partners.html': ['./templates/participate_partners.html'],
	        './participate_provider.html': ['./templates/participate_provider.html'],
	        './photos.html': ['./templates/photos.html'],
	        './selectionofficielle_competition.html': ['./templates/selectionofficielle_competition.html'],
	        './selectionofficielle_cannesclassic_hommage.html': ['./templates/selectionofficielle_cannesclassic_hommage.html'],
	        './selectionofficielle_cannesclassic_invit.html': ['./templates/selectionofficielle_cannesclassic_invit.html'],
	        './selectionofficielle_cannesclassic_copies.html': ['./templates/selectionofficielle_cannesclassic_copies.html'],
	        './selectionofficielle_cannesclassic_docu.html': ['./templates/selectionofficielle_cannesclassic_docu.html'],
	        './selectionofficielle_cannesclassic_world.html': ['./templates/selectionofficielle_cannesclassic_world.html'],
	        './selectionofficielle_uncertainregard.html': ['./templates/selectionofficielle_uncertainregard.html'],
	        './selectionofficielle_cinemadelaplage.html': ['./templates/selectionofficielle_cinemadelaplage.html'],
	        './selectionofficielle_courtsmetrages.html': ['./templates/selectionofficielle_courtsmetrages.html'],
	        './selectionofficielle_cinefondation.html': ['./templates/selectionofficielle_cinefondation.html'],
	        './selectionofficielle_seancesspeciales.html': ['./templates/selectionofficielle_seancesspeciales.html'],
	        './selectionofficielle_horscompetition.html': ['./templates/selectionofficielle_horscompetition.html'],
	        './videos.html': ['./templates/videos.html'],
	        './webTV.html': ['./templates/webTV.html'],
	        './webtv_trailer_competition.html': ['./templates/webtv_trailer_competition.html'],
	        './webtv_trailer_uncertainregard.html': ['./templates/webtv_trailer_uncertainregard.html'],
	      	'./webtv_trailer_cinemadelaplage.html': ['./templates/webtv_trailer_cinemadelaplage.html'],
	        './webtv_trailer_cannesclassics.html': ['./templates/webtv_trailer_cannesclassics.html'],
	        './webtv_trailer_courtmetrage.html': ['./templates/webtv_trailer_courtmetrage.html'],
	        './webtv_trailer_cinefondation.html': ['./templates/webtv_trailer_cinefondation.html'],
	        './webtv_trailer_seancesspeciales.html': ['./templates/webtv_trailer_seancesspeciales.html'],
	        './webtv_trailer_horscompetition.html': ['./templates/webtv_trailer_horscompetition.html'],
	        './audios.html': ['./templates/audios.html'],
	        './contact.html': ['./templates/contact.html'],
	        './credits.html': ['./templates/credits.html'],
	        './legals.html': ['./templates/legals.html'],
	        './privacy_policy.html': ['./templates/privacy_policy.html'],
	        './sitemap.html': ['./templates/sitemap.html'],
	        './events.html': ['./templates/events.html'],
	        './channel.html': ['./templates/channel.html'],
	        './palmares_competition.html': ['./templates/palmares_competition.html'],
	        './palmares_camerador.html': ['./templates/palmares_camerador.html'],
	        './palmares_uncertainregard.html': ['./templates/palmares_uncertainregard.html'],
	        './palmares_cinefondation.html': ['./templates/palmares_cinefondation.html'],
	        './palmares_all.html': ['./templates/palmares_all.html'],
	        './press.html': ['./templates/press.html'],
	        './search.html': ['./templates/search.html'],
	        './searchpage.html': ['./templates/searchpage.html'],
	        './artist.html': ['./templates/artist.html'],
	        './press_communiques.html': ['./templates/press_communiques.html'],
	        './press_practical_guide.html': ['./templates/press_practical_guide.html'],
	        './press_programmation.html': ['./templates/press_programmation.html'],
	        './programmation.html': ['./templates/programmation.html'],
	        './press_agenda.html': ['./templates/press_agenda.html'],
	        './agenda.html': ['./templates/agenda.html'],
	        './press_maps.html': ['./templates/press_maps.html'],
	        './maps.html': ['./templates/maps.html'],
	        './press_accreditation.html': ['./templates/press_accreditation.html'],
	        './press_download.html': ['./templates/press_download.html'],
	        './press_medias.html': ['./templates/press_medias.html']



	      }

	    }
	  },
	  uglify: {
	    dist: {
	      files: {
	        './js-concat/home.min.js': ['./js-concat/home.js'],
	        './js-concat/articles.min.js': ['./js-concat/articles.js'],
	        './js-concat/communiques.min.js': ['./js-concat/communiques.js'],
	        './js-concat/trailer.min.js': ['./js-concat/trailer.js'],
	        './js-concat/channels.min.js': ['./js-concat/channels.js'],
	        './js-concat/faq.min.js': ['./js-concat/faq.js'],
	        './js-concat/jury.min.js': ['./js-concat/jury.js'],
	        './js-concat/movie.min.js': ['./js-concat/movie.js'],
	        './js-concat/article.min.js': ['./js-concat/article.js'],
	        './js-concat/event.min.js': ['./js-concat/event.js'],
	        './js-concat/participate.min.js': ['./js-concat/participate.js'],
	        './js-concat/photos.min.js': ['./js-concat/photos.js'],
	        './js-concat/selection.min.js': ['./js-concat/selection.js'],
	        './js-concat/videos.min.js': ['./js-concat/videos.js'],
	        './js-concat/webTV.min.js': ['./js-concat/webTV.js'],
	        './js-concat/webtvTrailer.min.js': ['./js-concat/webtvTrailer.js'],
	        './js-concat/audios.min.js': ['./js-concat/audios.js'],
	        './js-concat/contact.min.js': ['./js-concat/contact.js'],
	        './js-concat/legals.min.js': ['./js-concat/legals.js'],
	        './js-concat/credits.min.js': ['./js-concat/credits.js'],
	        './js-concat/privacy_policy.min.js': ['./js-concat/privacy_policy.js'],
	        './js-concat/sitemap.min.js': ['./js-concat/sitemap.js'],
	        './js-concat/events.min.js': ['./js-concat/events.js'],
	        './js-concat/channel.min.js': ['./js-concat/channel.js'],
	        './js-concat/palmares.min.js': ['./js-concat/palmares.js'],
	        './js-concat/press.min.js': ['./js-concat/press.js'],
	        './js-concat/search.min.js': ['./js-concat/search.js'],
	        './js-concat/searchpage.min.js': ['./js-concat/searchpage.js'],
	        './js-concat/artist.min.js': ['./js-concat/artist.js'],
	        './js-concat/practical_guide.min.js': ['./js-concat/practical_guide.js'],
	        './js-concat/programmation-press.min.js': ['./templates/programmation-press.js'],
	        './js-concat/programmation.min.js': ['./templates/programmation.js'],
	        './js-concat/calendar-press.min.js': ['./templates/calendar-press.js'],
	        './js-concat/calendar.min.js': ['./templates/calendar.js'],
	        './js-concat/press_maps.min.js': ['./templates/press_maps.js'],
	        './js-concat/maps.min.js': ['./templates/maps.js'],
	        './js-concat/press_accreditation.min.js': ['./templates/press_accreditation.js'],
	        './js-concat/press_download.min.js': ['./templates/press_download.js'],
	        './js-concat/press_medias.min.js': ['./templates/press_medias.js']


	      }
	    }
	  },
    
	cssmin: {
	  options: {
	    shorthandCompacting: false,
	    roundingPrecision: -1
	  },
	  target: {
	    files: {
	        './css-concat/home.min.css': ['./css-concat/home.css'],
	        './css-concat/articles.min.css': ['./css-concat/articles.css'],
	        './css-concat/communiques.min.css': ['./css-concat/communiques.css'],
	        './css-concat/trailer.min.css': ['./css-concat/trailer.css'],
	        './css-concat/channels.min.css': ['./css-concat/channels.css'],
	        './css-concat/faq.min.css': ['./css-concat/faq.css'],
	        './css-concat/jury.min.css': ['./css-concat/jury.css'],
	        './css-concat/movie.min.css': ['./css-concat/movie.css'],
	        './css-concat/article.min.css': ['./css-concat/article.css'],
	        './css-concat/event.min.css': ['./css-concat/event.css'],
	        './css-concat/participate.min.css': ['./css-concat/participate.css'],
	        './css-concat/photos.min.css': ['./css-concat/photos.css'],
	        './css-concat/selection.min.css': ['./css-concat/selection.css'],
	        './css-concat/videos.min.css': ['./css-concat/videos.css'],
	        './css-concat/webTV.min.css': ['./css-concat/webTV.css'],
	        './css-concat/webtvTrailer.min.css': ['./css-concat/webtvTrailer.css'],
	        './css-concat/audios.min.css': ['./css-concat/audios.css'],
	        './css-concat/contact.min.css': ['./css-concat/contact.css'],
	        './css-concat/legals.min.css': ['./css-concat/legals.css'],
	        './css-concat/credits.min.css': ['./css-concat/credits.css'],
	        './css-concat/privacy_policy.min.css': ['./css-concat/privacy_policy.css'],
	        './css-concat/sitemap.min.css': ['./css-concat/sitemap.css'],
	        './css-concat/events.min.css': ['./css-concat/events.css'],
	        './css-concat/channel.min.css': ['./css-concat/channel.css'],
	        './css-concat/palmares.min.css': ['./css-concat/palmares.css'],
	        './css-concat/press.min.css': ['./css-concat/press.css'],
	        './css-concat/search.min.css': ['./css-concat/search.css'],
	        './css-concat/searchpage.min.css': ['./css-concat/searchpage.css'],
	        './css-concat/artist.min.css': ['./css-concat/artist.css'],
	        './css-concat/practical_guide.min.css': ['./css-concat/practical_guide.css'],
	        './css-concat/programmation-press.min.css': ['./css-concat/programmation-press.css'],
	        './css-concat/programmation.min.css': ['./css-concat/programmation .css'],
	        './css-concat/calendar-press.min.css': ['./css-concat/calendar-press.css'],
	        './css-concat/calendar.min.css': ['./css-concat/calendar.css'],
	        './css-concat/press_maps.min.css': ['./css-concat/press_maps.css'],
	        './css-concat/maps.min.css': ['./css-concat/maps.css'],
	        './css-concat/press_accreditation.min.css': ['./css-concat/press_accreditation.css'],
	        './css-concat/press_download.min.css': ['./css-concat/press_download.css'],
	        './css-concat/press_medias.min.css': ['./css-concat/press_medias.css']


	    }
	  }
	},

	copy: {
		js: {
			files: [
				{
					expand: true,
					cwd: './js-concat/',
					src: ['*.js'],
					dest: '../src/FDC/EventMobileBundle/Resources/public/js/'
				},
				{
					expand: true,
					cwd: './js-concat/',
					src: ['*.js'],
					dest: '../src/FDC/PressMobileBundle/Resources/public/js/'
				},
			]
		},
		css: {
			files: [
				{
					expand: true,
					cwd: './css-concat/',
					src: ['*.css'],
					dest: '../src/FDC/EventMobileBundle/Resources/public/css/'
				},
				{
					expand: true,
					cwd: './css-concat/',
					src: ['*.css'],
					dest: '../src/FDC/PressMobileBundle/Resources/public/css/'
				}
			]
		}
	},

	watch: {
	    css: {
	        files: ['css/*.css', 'css/vendors/*.css', 'css/include/*.css'],
	        tasks: ['concat:css'],
	        options: {
	            spawn: false
	        }
	    },
	    js: {
	        files: [ 'js/*.js','js/vendors/*.js','js/include/*.js'],
	        tasks: ['concat:js'],
	        options: {
	            spawn: false
	        }
	    },
	    html: {
	        files: ['templates/*.html', 'include/*.html'],
	        tasks: ["processhtml:dist"],
	        options: {
	            spawn: false
	        }
	    }
	}

});

grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-processhtml');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy');

grunt.registerTask('default', ['concat', "processhtml:dist"]);
grunt.registerTask('prod', ['concat', 'uglify', "cssmin","processhtml:prod"]);
grunt.registerTask('build:js', ['concat:js', 'copy:js']);
grunt.registerTask('build:css', ['concat:css', 'copy:css']);
};