module.exports = function (grunt) {

	grunt.initConfig({

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

		browserSync: {
			dev: {
				bsFiles: {
					src: 'build/demo/**.*'
				},
				options: {
					watchTask: true,
					server: 'build/demo',
					index: 'video.html'
				}
			}
		},

		clean: {
			build: {
				src: "build"
			}
		},

		copy: {
			demo: {
				files: [
					{
						expand: true,
						cwd: 'source/',
						src: ['demo/**/*.html', 'demo/**/*.css', 'demo/**/*.js'],
						dest: 'build/'
					},
					{
						expand: true,
						cwd: 'source/',
						src: ['clever-video.js'],
						dest: 'build/demo/_assets/scripts/'
					}
				],
				options: {
					noProcess: ['**/*.css', '**/*.js'],
					process: function(content, srcpath) {
						grunt.log.writeln('Modifying path to clever-video.js in build copy of ' + srcpath + '.');
						return content.replace('../clever-video.js', './_assets/scripts/clever-video.js');
					}
				}
			},
			library: {

				expand: true,
				cwd: 'source/',
				src: ['clever-video.js'],
				dest: 'build/'
			}
		},

		uglify: {
			build: {
				files: {
					'build/clever-video.min.js': ['source/clever-video.js']
				}
			}
		},

		watch: {
			demo: {
				files: 'source/demo/**/*.*',
				tasks: ['copy:demo']
			},
			library: {
				files: 'source/*.js',
				tasks: ['copy:library', 'uglify']
			}
		}
	});

	grunt.loadNpmTasks('grunt-browser-sync');
	grunt.loadNpmTasks('grunt-contrib-clean');
	grunt.loadNpmTasks('grunt-contrib-copy');
	grunt.loadNpmTasks('grunt-contrib-uglify');
	grunt.loadNpmTasks('grunt-contrib-watch');

	grunt.registerTask('build', ['clean', 'copy', 'uglify']);

	grunt.registerTask('default', ['build', 'browserSync', 'watch']);
};
@@ -942,24 +942,245 @@
 %09%09%09%09%7D%0A%09%09%09%7D,%0A
+%09%09%09docs: %7B%0A%09%09%09%09files: %5B%0A%09%09%09%09%09%7B%0A%09%09%09%09%09%09src: 'build/demo/video.html',%0A%09%09%09%09%09%09dest: 'docs/index.html'%0A%09%09%09%09%09%7D,%0A%09%09%09%09%09%7B%0A%09%09%09%09%09%09expand: true,%0A%09%09%09%09%09%09cwd: 'build/demo',%0A%09%09%09%09%09%09src: '_assets/**',%0A%09%09%09%09%09%09dest: 'docs/'%0A%09%09%09%09%09%7D%0A%09%09%09%09%5D%0A%09%09%09%7D,%0A
 %09%09%09library: 

Add a new target for the copy task to copy the built demo files into a docs directory, renaming video.html to index.html in the process.