                 indentation:
                     value: 4
 
-            files: ['Gruntfile.coffee']
+            all: ['Gruntfile.coffee']
 
         jshint:
 
             options:
                 jshintrc: '.jshintrc'
 
-            files: ['js/*.js']
+            all: ['js/*.js']
 
         copy:
-            main:
+
+            dist:
                 files: [{
-                    expand: true,
+                    expand: true
                     src: [
-                        'slides/**',
-                        'bower_components/**',
+                        'slides/**'
+                        'bower_components/**'
                         'js/**'
-                    ],
+                    ]
                     dest: 'dist/'
                 },{
-                    expand: true,
-                    src: ['index.html'],
-                    dest: 'dist/',
+                    expand: true
+                    src: ['index.html']
+                    dest: 'dist/'
                     filter: 'isFile'
                 }]
 

                options:
                    livereload: true
                files: [
                    'index.html',
                    'slides/*.md',
                    'slides/*.html',
                    'js/*.js'
                ]

            index:
                files: [
                    'index.tpl',
                    'slides/list.json'
                ]
                tasks: ['build:index']

                    slides
            grunt.file.write 'index.html', html

    grunt.registerTask 'test',
        '*Lint* javascript and coffee files.', [
            'coffeelint'
            'jshint'
        ]

    grunt.registerTask 'server',
        'Run presentation locally and start watch process (living document).', [
            'build:index'
            'connect:livereload'
            'watch'
        ]

    grunt.registerTask 'dist',
        'Save presentation files to *dist* directory.', [
            'test'
            'build:index'
            'copy'
        ]

    # Define default task.
    grunt.registerTask 'default', [
        'test'
        'server'
    ]
