// jchck_'s gulpfile

//
// gulp plugin registry
//

var gulp 			=		require('gulp');
var postcss 		=		require('gulp-postcss');
var cssnext 		= 		require('postcss-cssnext');
var precss			=		require('precss');
var autoprefixer	=		require('autoprefixer');
var atImport		=		require('postcss-import');
var mqpacker		=		require('css-mqpacker');
var cssnano			=		require('cssnano');
var size			=		require('gulp-size');
var	cssvariables	=		require('postcss-css-variables');

//
// css processing task
//

gulp.task('css', function(){
	
	// postcss plugin registry
	var postcssPlugins = [
		atImport,
		cssvariables,
		cssnano,
		autoprefixer({
			browsers: ['last 2 versions']
		}),
		cssnext,
		mqpacker,
		precss
	];

	// processing plumbing
	return gulp.src('./src/css/jchck_.css')

		// postcss it 
		.pipe(postcss(postcssPlugins))

		// what's the size?
		.pipe(size({gzip: false, showFiles: true, title: 'Processed!'}))
		.pipe(size({gzip: true, showFiles: true, title: 'Processed & gZipped!'}))

		// spit it out
		.pipe(gulp.dest('./dest'));
});
@@ -459,16 +459,118 @@
 bles');%0A
+var browserSync%09%09=%09%09require('browser-sync').create();%0Avar devUrl%09%09%09=%09%09'http://vagrant.local/jchck/';%0A%0A
 %0A//%0A// c
@@ -590,16 +590,33 @@
  task%0A//
+%0A// $ gulp css%0A//
 %0A%0Agulp.t
@@ -1157,8 +1157,329 @@
 '));%0A%7D);
+%0A%0A%0A//%0A// watch task%0A//%0A// $ gulp watch%0A//%0A%0Agulp.task('watch', function()%7B%0A%0A%09browserSync.init(%7B%0A%09%09files: %5B%0A%09%09%09'%7Blib,templates%7D/**/*.php',%0A%09%09%09'*.php'%0A%09%09%5D,%0A%09%09proxy: devUrl,%0A%09%09snippetOptions: %7B%0A%09%09%09whitelist: %5B'/wp-admin/admin-ajax.php'%5D,%0A%09%09%09blacklist: %5B'/wp-admin/**'%5D%0A%09%09%7D%0A%09%7D);%0A%0A%09gulp.watch(%5B'./src/css/**/*'%5D, %5B'css'%5D);%0A%7D);%0A

write the gulp watch task