 
 bower                 = require 'bower'
 buster                = require 'gulp-buster'
+childProcess          = require 'child_process'
 clean                 = require 'gulp-clean'
 coffee                = require 'gulp-coffee'
 coffeelint            = require 'gulp-coffeelint'

			'jasmine'
		]
		keepalive: false
		logLevel: 'INFO'
		reporters: [
			'dots'
			'progress'
		]
		singleRun: true

	deferred = q.defer()

	karma.server.start options, (exitCode) ->
		deferred.resolve exitCode

	deferred.promise

gulp.task 'views', ['jade', 'markdown']


		.pipe jade options
		.pipe gulp.dest TEMP_DIRECTORY

gulp.task 'karma', ->
	scripts = SCRIPTS.slice 0

	# remove *.spec exclusion
	scripts.pop()

	options =
		autoWatch: false
		background: true
		basePath: DIST_DIRECTORY
		browsers: [
