 
 # Clean working directories
 gulp.task 'clean:working', ->
-	sources = [TEMP_DIRECTORY, DIST_DIRECTORY].concat(if getBower and firstRun then [COMPONENTS_DIRECTORY, BOWER_FILE] else [])
+	sources = [DIST_DIRECTORY].concat(if firstRun then [TEMP_DIRECTORY] else []).concat(if getBower and firstRun then [COMPONENTS_DIRECTORY, BOWER_FILE] else [])
 
 	gulp
 		.src sources, {read: false}

	srcs.push src =
		gulp
			.src sources, {cwd: COMPONENTS_DIRECTORY, nodir: true}
			.on 'error', onError

			.pipe gulp.dest TEMP_DIRECTORY
			.on 'error', onError

	es

		.on 'error', onError

# Compile templateCache
gulp.task 'templateCache', ['html'].concat(LANGUAGES.VIEWS), ->
	options =
		templateCache:
			module: APP_NAME
