 	gulp
 		.src '**/*.ts', cwd: TEMP_DIRECTORY
 		.pipe typeScript()
+		.on 'error', onError
 		.pipe gulp.dest TEMP_DIRECTORY
 
 gulp.task 'views', ['jade', 'markdown']

	gulp
		.src 'index.html', cwd: DIST_DIRECTORY
		.pipe open '', options

gulp.task 'reload', ['build'], ->
	gulp
		.src 'index.html', cwd: DIST_DIRECTORY
		.pipe connect.reload()

gulp.task 'scripts', ['coffee', 'typeScript']


		gulp
			.src files, cwd: TEMP_DIRECTORY
			.pipe includify()
			.on 'error', onError
			.on 'end', (data) ->
				deferred.resolve data

