{"size": 950, "ext": "js", "max_stars_repo_path": "gulpfile.js", "max_stars_repo_name": "yukihir0/electron-es6-angular", "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": "yukihir0/electron-es6-angular", "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": "yukihir0/electron-es6-angular", "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.0930232558, "max_line_length": 57, "alphanum_fraction": 0.5526315789}
var gulp = require("gulp");
var babel = require("gulp-babel");
var packager = require('electron-packager');

gulp.task("babel", function() {
  return gulp.src("./src/**/*.js")
    .pipe(babel())
    .pipe(gulp.dest("./app"));
});

gulp.task("copy", ["copy_html", "copy_css"]);

gulp.task("copy_html", function() {
  return gulp.src(["./src/**/*.html"], {base: "src"})
    .pipe(gulp.dest("./app"));
});

gulp.task("copy_css", function() {
  return gulp.src(["./src/**/*.css"], {base: "src"})
    .pipe(gulp.dest("./app"));
});

gulp.task("watch", function() {
  gulp.watch("./src/*.js", ["babel", "copy"])
});

gulp.task('package', ["babel", "copy"], function (done) {
  packager({
    dir: ".",
    name: "electron-es6-angular",
    arch: "x64",
    platform: "darwin",
    out: "release/darwin",
    asar: true,
    version: "0.30.0"
  }, function (err, path) {
    console.log(err);
    done();
  });
});

gulp.task("default", ["babel", "copy"]);
