 					trim file, 'requirejs/'
 				else
 					return false
-		)
-		.pipe(gulp.dest('./components/scripts/libs/'))
+		.pipe gulp.dest './components/scripts/libs/'
 
 	components
-		.pipe(filter (file) ->
-			isLess = /bootstrap\/less\//.test(file.path)
+		.pipe filter (file) ->
+			isLess = /bootstrap\/less\//.test file.path
 
 			return if not isLess
 
 			trim file, 'bootstrap/less/'
-		)
-		.pipe(gulp.dest('./components/styles/'))
+		.pipe gulp.dest './components/styles/'
 
 	components
-		.pipe(filter (file) ->
-			isLess = /bootstrap\/dist\/fonts\//.test(file.path)
-
-			return if not isLess
+		.pipe filter (file) ->
+			isFont = /bootstrap\/dist\/fonts\//.test file.path
+
+			return if not isFont
 
 			trim file, 'bootstrap/dist/fonts/'
-		)
-		.pipe(gulp.dest('./components/fonts/'))
+		.pipe gulp.dest './components/fonts/'
 
 gulp.task 'copy:temp', ['clean', 'bower'], ->
-	gulp.src(['./src/**', './components/**'])
-		.pipe(gulp.dest('./.temp/'))
+	gulp
+		.src ['./src/**', './components/**']
+		.pipe gulp.dest './.temp/'
 
 gulp.task 'coffeelint', ->
 	options =

	components = bower()

	components
		.pipe(filter (file) ->
			switch file.path
				when 'angular/angular.min.js'
					trim file, 'angular/'

		no_tabs:
			level: 'ignore'

	gulp
		.src './src/**/*.coffee'
		.pipe coffeelint options
		.pipe coffeelint.reporter()

gulp.task 'coffee', ['coffeelint', 'copy:temp'], ->
	options =
		sourceMap: true

	gulp
		.src './.temp/**/*.coffee'
		.pipe coffee options
		.pipe gulp.dest './.temp/'

gulp.task 'scripts', ['coffee']

gulp.task 'less', ['copy:temp'], ->
	gulp
		.src './.temp/styles/styles.less'
		.pipe less()
		.pipe gulp.dest './.temp/styles/'

gulp.task 'styles', ['less']

