<commit_before>'use strict';

var vfs = require( 'vinyl-fs' );

var clean = function( target ) {

	var clean = require( 'gulp-rimraf' );

	return vfs.src( target )
		.pipe( clean() );

};

var makeCss = function( source, target, opts ) {

	var csslint = require( 'gulp-csslint' ),
		less = require( 'gulp-less' );

	return vfs.src( source )
		.pipe( less() )
		.pipe( csslint( ( opts && opts.lintOpts ) ? opts.lintOpts : '' ) )
		.pipe( csslint.reporter() )
		.pipe( vfs.dest( target ) );

};

var makeLess = function( source, target ) {

	return vfs.src( source )
		.pipe( vfs.dest( target ) );

};

var test = function( config, js, css ) {

	var karma = require( 'gulp-karma' );

	return vfs.src( 'empty-stream' )
		.pipe( karma( { 
			configFile: config, 
			files: [ 
				js, 
				{ pattern: css, included: true }
			],
			action: 'run' 
		} ) );

};<commit_msg>Add autoprefixer postcss to the pipeline, permitting custom browser list from the calling module.<commit_after>'use strict';

var vfs = require( 'vinyl-fs' );

var clean = function( target ) {

	var clean = require( 'gulp-rimraf' );

	return vfs.src( target )
		.pipe( clean() );

};

var makeCss = function( source, target, opts ) {

	var csslint = require( 'gulp-csslint' ),
		less = require( 'gulp-less' ),
		autoprefixer = ( 'autoprefixer' ),
		postcss = ( 'gulp-postcss' );

	return vfs.src( source )
		.pipe( less() )
		.pipe( autoprefixer( ( opts && opts.autoprefixerOpts ) ? opts.autoprefixerOpts : 'none' ).postcss )
		.pipe( csslint( ( opts && opts.lintOpts ) ? opts.lintOpts : '' ) )
		.pipe( csslint.reporter() )
		.pipe( vfs.dest( target ) );

};

var makeLess = function( source, target ) {

	return vfs.src( source )
		.pipe( vfs.dest( target ) );

};

var test = function( config, js, css ) {

	var karma = require( 'gulp-karma' );

	return vfs.src( 'empty-stream' )
		.pipe( karma( { 
			configFile: config, 
			files: [ 
				js, 
				{ pattern: css, included: true }
			],
			action: 'run' 
		} ) );

};
{'fraction_non_alphanumeric': 0.17060895822848515, 'fraction_numerical': 0.0, 'mean_word_length': 3.0161616161616163, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5148339', 'n_tokens_mistral': 815, 'n_tokens_neox': 758, 'n_words': 190}