{"size": 927, "ext": "js", "max_stars_repo_path": "gulpfile.js", "max_stars_repo_name": "diogo405/charles", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "gulpfile.js", "max_issues_repo_name": "diogo405/charles", "max_issues_repo_issues_event_min_datetime": "2016-05-13T14:29:36.000Z", "max_issues_repo_issues_event_max_datetime": "2016-05-18T03:04:09.000Z", "max_forks_repo_path": "gulpfile.js", "max_forks_repo_name": "diogo405/charles", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 24.3947368421, "max_line_length": 63, "alphanum_fraction": 0.6116504854}
var gulp = require('gulp');
var haml = require('gulp-haml');
var sass = require('gulp-sass');
var browserify = require('gulp-browserify');
var jshint = require('gulp-jshint');

gulp.task('haml', function(){
	return gulp.src('./app/haml/*.haml')
		.pipe(haml())
		.pipe(gulp.dest('./app'));
});


gulp.task('sass', function(){
	return gulp.src('./app/sass/*.sass')
		.pipe(sass())
		.pipe(gulp.dest('./app/css'))
});

gulp.task('browserify', function(){
	return gulp.src('./app/js/app.js')
		.pipe(browserify())
		.pipe(gulp.dest('./app/js/build'));
});

gulp.task('jshint', function(){
	return gulp.src('./app/js/app.js')
		.pipe(jshint())
		.pipe(jshint.reporter('default'));
});

gulp.task('default', ['haml', 'sass', 'jshint', 'browserify']);

gulp.task('watch', function(){
	gulp.watch('./app/haml/*.haml', ['haml']);
	gulp.watch('./app/sass/*.sass', ['sass']);
	gulp.watch('./app/js/app.js', ['jshint', 'browserify']);
});