{"size": 909, "ext": "js", "max_stars_repo_path": "gulp/tasks/stylus.js", "max_stars_repo_name": "empirefox/ta-bootstrap", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "gulp/tasks/stylus.js", "max_issues_repo_name": "empirefox/ta-bootstrap", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "gulp/tasks/stylus.js", "max_forks_repo_name": "empirefox/ta-bootstrap", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.6428571429, "max_line_length": 51, "alphanum_fraction": 0.6490649065}
var gulp = require('gulp');
var nib = require('nib');
var plugins = require('gulp-load-plugins')();
var stylus = plugins.stylus;
var sourcemaps = plugins.sourcemaps;
var concat = plugins.concat;
var handleErrors = require('../util/handleErrors');
var config = require('../config').stylus;
var browserSync = require('browser-sync');

gulp.task('stylus', function() {
	return gulp.src(config.src)
	// stylus
	.pipe(stylus({
		use : nib(),
		compress : false,
		sourcemap : {
			inline : true,
			sourceRoot : '.',
			basePath : config.dest
		}
	}))
	// error
	.on('error', handleErrors)
    // concat
    .pipe(concat(config.name))
	// sourcemaps
	.pipe(sourcemaps.init({
		loadMaps : true
	}))
	// external sourcemaps
	.pipe(sourcemaps.write('.', {
		includeContent : false,
		sourceRoot : '.'
	}))
	// output
	.pipe(gulp.dest(config.dest))
	// browserSync
	.pipe(browserSync.reload({
		stream : true
	}));
});