{"size": 1757, "ext": "js", "max_stars_repo_path": "gulpfile.js", "max_stars_repo_name": "iproman/plan-manager", "max_stars_repo_stars_event_min_datetime": "2020-12-30T02:36:10.000Z", "max_stars_repo_stars_event_max_datetime": "2020-12-30T02:36:10.000Z", "max_issues_repo_path": "gulpfile.js", "max_issues_repo_name": "iproman/plan-manager", "max_issues_repo_issues_event_min_datetime": "2021-03-11T03:57:53.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-02T14:54:20.000Z", "max_forks_repo_path": "gulpfile.js", "max_forks_repo_name": "iproman/plan-manager", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 33.1509433962, "max_line_length": 107, "alphanum_fraction": 0.4228799089}
let gulp = require('gulp');
let sourceMap = require('gulp-sourcemaps');
let sass = require('gulp-sass');
let autoPrefix = require('gulp-autoprefixer');
let concat = require('gulp-concat');
let cleanCss = require('gulp-clean-css');
let notify = require('gulp-notify');
let minify = require('gulp-minify')

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

let config = {
    path: {
        scssWatch: './web/source/scss/**/*.scss',
        scss: './web/source/scss/site.scss',
    },
    output: {
        cssName: 'site.css',
        path: './web/css',
    },
    outputMin: {
        cssName: 'site.min.css',
        path: './web/css',
    },
};

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

gulp.task('scss', function () {
    return gulp.src(config.path.scss)
        .pipe(sourceMap.init())
        .pipe(sass())
        .pipe(concat(config.output.cssName))
        .pipe(autoPrefix('last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4'))
        .pipe(sourceMap.write())
        .pipe(gulp.dest(config.output.path))
        .pipe(concat(config.outputMin.cssName))
        .pipe(cleanCss())
        .pipe(gulp.dest(config.outputMin.path))
        .pipe(notify('Compiled'))
        ;
});
gulp.task('watch', function () {
    gulp.watch(config.path.scssWatch, gulp.series('scss'));
});

///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

gulp.task('default', gulp.series('scss', 'watch'));
