function testComponentsTask() {
	return gulp.src([])
			   .pipe(karma({ configFile: './test/components/karma.conf.js', action: 'run'}))
			   .on('error', function (err) {
					throw err;
			    });
}
']))
			   .on('error', log)
			   .pipe(gulp.dest(paths.dist));
}

function lessTask() {
	return gulp.src(paths.src + '/css/styles.less')
			   .pipe(less())
			   .pipe(cssmin())
			   .on('error', log)
			   .pipe(gulp.dest(paths.dist + '/css'));
}

function testModulesTask() {
	return gulp.src(['./lib/*.js'])
			   .pipe(istanbul({includeUntested: true}))
			   .pipe(istanbul.hookRequire())
			   .on('finish', function () {
					gulp.src(['./test/modules/*