{"size": 593, "ext": "js", "max_stars_repo_path": "gulpfile.babel.js", "max_stars_repo_name": "rouuuuuuute/Follobot", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "gulpfile.babel.js", "max_issues_repo_name": "rouuuuuuute/Follobot", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "gulpfile.babel.js", "max_forks_repo_name": "rouuuuuuute/Follobot", "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": 28.2380952381, "max_line_length": 76, "alphanum_fraction": 0.6441821248}
const gulp = require('gulp');
const webpackConfig =require('./webpack.config.js');
const webpack = require('webpack-stream');
const notify = require('gulp-notify');
const plumber = require('gulp-plumber');

function build(cb){
    gulp.src('resources/js/app.js')
        .pipe(plumber({
            errorHandler: notify.onError("Error: <%= error.message %>")
        }))
        .pipe(webpack(webpackConfig))
        .pipe(gulp.dest('public/js'));
    cb();
}


function watch(cb){gulp.watch('resources/js/**/*.js',gulp.parallel(build));}

exports.default = gulp.series(gulp.parallel(watch));
