{"size": 866, "ext": "js", "max_stars_repo_path": "_html_webview/gulpfile.js", "max_stars_repo_name": "atefben/fdc", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "_html_webview/gulpfile.js", "max_issues_repo_name": "atefben/fdc", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "_html_webview/gulpfile.js", "max_forks_repo_name": "atefben/fdc", "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": 24.7428571429, "max_line_length": 63, "alphanum_fraction": 0.584295612}
var gulp = require('gulp');
var sass = require('gulp-sass');
var config = {
	css: {
		src: 'css/webview.css',
		dest: '../src/FDC/EventBundle/Resources/public/webview/css/',
	},
	js: {
		src: 'js/*',
		dest: '../src/FDC/EventBundle/Resources/public/webview/js/'
	}
}

gulp.task('sass', function () {
  return gulp.src('./scss/**/*.scss')
    .pipe(sass().on('error', sass.logError))
    .pipe(gulp.dest('./css'));
});
 
gulp.task('watch', function () {
  gulp.watch('./scss/**/*.scss', ['sass','copy:css']);
  gulp.watch('./js/*.js', ['copy:js']);
});

gulp.task('copy:css', function () {
    return gulp.src(config.css.src, {dot: true})
        .pipe(gulp.dest(config.css.dest))
});

gulp.task('copy:js', function () {
    return gulp.src(config.js.src, {dot: true})
        .pipe(gulp.dest(config.js.dest))
});

gulp.task('default', ['sass','copy:css','copy:js']);