Skip to content

Commit

Permalink
ES6-ify gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
wincent committed Feb 3, 2017
1 parent ac5cf67 commit 9cb727d
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions gulpfile.babel.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// Copyright 2015-present Greg Hurrell. All rights reserved.
// Licensed under the terms of the MIT license.

var babel = require('gulp-babel');
var child_process = require('child_process');
var eslint = require('gulp-eslint');
var flow = require('gulp-flowtype');
var gulp = require('gulp');
var gutil = require('gulp-util');
var minifyHTML = require('gulp-minify-html');
var path = require('path');

var electronBase = 'node_modules/electron/dist';
var watching = false;
import babel from 'gulp-babel';
import child_process from 'child_process';
import eslint from 'gulp-eslint';
import flow from 'gulp-flowtype';
import gulp from 'gulp';
import gutil from 'gulp-util';
import minifyHTML from 'gulp-minify-html';
import path from 'path';

const electronBase = 'node_modules/electron/dist';
let watching = false;

/**
* Ring the terminal bell.
Expand Down Expand Up @@ -89,7 +89,7 @@ gulp.task('typecheck', function() {

function copyApp(env) {
return () => {
var source = path.join(electronBase, 'Electron.app');
const source = path.join(electronBase, 'Electron.app');
return exec(`cp -pR ${source} ${env}/`);
};
}
Expand Down

0 comments on commit 9cb727d

Please sign in to comment.