{"size": 785, "ext": "js", "max_stars_repo_path": "gulpfile.js", "max_stars_repo_name": "kciter/dead-toast", "max_stars_repo_stars_event_min_datetime": "2016-09-12T01:20:22.000Z", "max_stars_repo_stars_event_max_datetime": "2019-01-13T07:45:32.000Z", "max_issues_repo_path": "gulpfile.js", "max_issues_repo_name": "kciter/dead-toast", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "gulpfile.js", "max_forks_repo_name": "kciter/dead-toast", "max_forks_repo_forks_event_min_datetime": "2018-03-11T00:41:18.000Z", "max_forks_repo_forks_event_max_datetime": "2018-03-11T00:41:18.000Z"}
{"max_stars_count": 16, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 27.0689655172, "max_line_length": 71, "alphanum_fraction": 0.6369426752}
'use strict';

var gulp = require('gulp'), 
	sass = require('gulp-sass'),
	autoprefixer = require('gulp-autoprefixer'),
	cleanCSS = require('gulp-clean-css'),
	uglify = require('gulp-uglify'),
	gulpUtil = require('gulp-util'),
	rename = require('gulp-rename')

gulp.task('sass', function() {
	gulp.src('dead-toast.scss')
		.pipe(sass.sync().on('error', sass.logError))
		.pipe(autoprefixer())
		.pipe(cleanCSS({compatibility: 'ie8'}))
		.pipe(rename('dead-toast.min.css'))
		.pipe(gulp.dest('.'));
});

gulp.task('build', function() {
	gulp.src('dead-toast.js')
		.on('error', function(err) { console.error(err); this.emit('end'); })
		.pipe(uglify().on('error', gulpUtil.log))
		.pipe(rename('dead-toast.min.js'))
		.pipe(gulp.dest('.'));
});

gulp.task('default', ['sass', 'build'])
