 
 
 gulp.task 'spa', ['scripts', 'styles', 'views'], ->
+	unixifyPath = (p) ->
+			regex = /\\/g
+			p.replace regex, '/'
+
 	includify = ->
 		scripts = []
 		styles = []

	gulp
		.src '**', cwd: tempDirectory
		.pipe gulp.dest distDirectory
		
gulp.task 'copy:temp', ['clean:working', 'components'], ->
	gulp
		.src ["#{srcDirectory}**", "#{componentsDirectory}**"]

			return if file.isNull()

			ext = path.extname file.path
			p = unixifyPath(path.join('/', path.relative(file.cwd, file.path)))

			return if ext is '.js'
				scripts.push p
