                     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',
+            'build:index'
+            'connect:livereload'
             'watch'
         ]
 
-    grunt.registerTask 'build', [
-
-        'coffeelint',
-        'jshint',
-        'build:index',
-        'copy'
-    ]
+    grunt.registerTask 'dist',
+        'Save presentation files to *dist* directory.', [
+            'test'
+            'build:index'
+            'copy'
+        ]
 
     # Define default task.
     grunt.registerTask 'default', [
-        'coffeelint',
-        'jshint',
-        'build:index',
-        'connect:livereload',
-        'watch'
+        'test'
+        'server'
     ]
-

                indentation:
                    value: 4

            files: ['Gruntfile.coffee']

        jshint:

            options:
                jshintrc: '.jshintrc'

            files: ['js/*.js']

        copy:
            main:
                files: [{
                    expand: true,
                    src: [
                        'slides/**',
                        'bower_components/**',
                        'js/**'
                    ],
                    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']
