 
 appUrl         = "http://localhost:#{PORT}"
 env            = gutil.env
+getBower       = getSwitchOption 'bower'
 isProd         = getSwitchOption 'prod'
 isWindows      = /^win/.test(process.platform)
 manifest       = {}

		.on 'error', onError

# Prepare for compilation
gulp.task 'prepare', ['normalizeComponents', 'clean:working']

# Reload the app in the default browser
gulp.task 'reload', ['build'], ->


# Clean working directories
gulp.task 'clean:working', ->
	sources = [TEMP_DIRECTORY, DIST_DIRECTORY].concat(if getBower then [COMPONENTS_DIRECTORY, BOWER_FILE] else [])

	gulp
		.src sources, {read: false}
