{"size": 931, "ext": "js", "max_stars_repo_path": "backend/gulpfile.js", "max_stars_repo_name": "hugocalcad/remap_rev", "max_stars_repo_stars_event_min_datetime": "2018-08-30T22:46:47.000Z", "max_stars_repo_stars_event_max_datetime": "2021-12-23T08:19:50.000Z", "max_issues_repo_path": "backend/gulpfile.js", "max_issues_repo_name": "red-list-ecosystem/REMAP", "max_issues_repo_issues_event_min_datetime": "2019-11-01T13:58:19.000Z", "max_issues_repo_issues_event_max_datetime": "2021-03-11T10:21:51.000Z", "max_forks_repo_path": "backend/gulpfile.js", "max_forks_repo_name": "hugocalcad/remap_rev", "max_forks_repo_forks_event_min_datetime": "2017-11-29T02:40:03.000Z", "max_forks_repo_forks_event_max_datetime": "2017-12-20T22:00:37.000Z"}
{"max_stars_count": 17, "max_issues_count": 3, "max_forks_count": 2, "avg_line_length": 25.1621621622, "max_line_length": 73, "alphanum_fraction": 0.5789473684}
var gulp = require('gulp'),
	minify = require('gulp-minify'),
	concat = require('gulp-concat'),
	sass = require('gulp-sass'),
    exec = require('child_process').exec

gulp.task('minify', () => {
	gulp.src('static/js/app/*.js')
		.pipe(concat('app.js'))
		.pipe(minify())
        .on('error', (x) => {
        console.log(x)
        })
		.pipe(gulp.dest('static/js'))

	gulp.src(['static/js/togeojson.js', 'static/js/wNumb.js'])
		.pipe(minify())
		.pipe(gulp.dest('static/js'))
})

gulp.task('sass', function () {
  return gulp.src('./bower_components/materialize/sass/materialize.scss')
    .pipe(sass({ style: 'compressed' })
    	.on('error', () => {
            console.log
        }))
    .pipe(gulp.dest('./static/css'));
})

gulp.task('watch', () => {
	gulp.watch('static/js/app/*.js', ['minify'])
	gulp.watch('bower_components/materialize/sass/**/*.scss', ['sass'])
})
 

gulp.task('default', ['minify', 'sass', 'watch'])
