 
 	gulp
 		.watch sources, {cwd: SRC_DIRECTORY, maxListeners: 999}, tasks
-		.on 'error', onError+		.on 'error', onError

	# get args from parent process to pass on to child process
	args  = ("--#{key}=#{value}" for own key, value of yargs.argv when key isnt '_' and key isnt '$0')
	args  = ['karma'].concat args

	spawn = childProcess.spawn command, args, {stdio: 'inherit'}

# Compile TypeScript

		.on 'error', onError

# Execute karma unit tests
gulp.task 'karma', ->
	sources = [].concat SCRIPTS, '**/*.html'

	options =
