{"size": 569, "ext": "js", "max_stars_repo_path": "gulpfile.js", "max_stars_repo_name": "NetworkMonk/el", "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": "NetworkMonk/el", "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": "NetworkMonk/el", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.76, "max_line_length": 44, "alphanum_fraction": 0.6098418278}
/*jshint esversion: 6 */ 

const {series, src, dest} = require('gulp');
const uglify = require('gulp-uglify');
const rename = require('gulp-rename');
const concat = require('gulp-concat');
const del = require('del');

function clean(cb) {
    del(['dist/*']).then(function() {
        cb();
    });
}

function buildjs() {
    return src('src/core/**/*.js')
    .pipe(concat('el.js'))
    .pipe(uglify())
    .pipe(rename({extname: '.min.js'}))
    .pipe(dest('dist/'));
}

exports.clean = clean;
exports.build = series(clean, buildjs);
exports.default = exports.build;