{"size": 667, "ext": "js", "max_stars_repo_path": "gulpfile.js", "max_stars_repo_name": "JorgeAntrax/cv", "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": "JorgeAntrax/cv", "max_issues_repo_issues_event_min_datetime": "2020-07-17T01:04:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-12T10:00:08.000Z", "max_forks_repo_path": "gulpfile.js", "max_forks_repo_name": "JorgeAntrax/cv", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 25.6538461538, "max_line_length": 53, "alphanum_fraction": 0.5697151424}
const gulp        = require('gulp');
const browserSync = require('browser-sync');
const br = browserSync.create();
const sass        = require('gulp-sass');

// Static Server + watching scss/html files
gulp.task('serve', ()=>{
    br.init({
        server: "./"
    });
});

gulp.task('watch', () => {
    gulp.watch('style.scss', gulp.series('sass'));
    gulp.watch("*.html").on('change', br.reload);
});

// Compile sass into CSS & auto-inject into browsers
gulp.task('sass', () => {
    return gulp.src("./*.scss")
        .pipe(sass())
        .pipe(gulp.dest("./build/css"))
        .pipe(br.stream());
});

gulp.task('default', gulp.parallel('watch','serve'));