diff --git a/gulpfile.js b/gulpfile.js index 855980658440d..ddacd97c5dd49 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -116,7 +116,7 @@ const buildDist = function(filename, opts, isProduction) { plugins: [ new webpackStream.webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify( - isProduction ? 'production' : 'development', + isProduction ? 'production' : 'development' ), }), new webpackStream.webpack.optimize.OccurenceOrderPlugin(), @@ -131,7 +131,7 @@ const buildDist = function(filename, opts, isProduction) { screw_ie8: true, warnings: false, }, - }), + }) ); } return webpackStream(webpackOpts, null, function(err, stats) { @@ -265,8 +265,8 @@ gulp.task('modules', function() { ]) .pipe(babel(babelOptions)) .pipe(flatten()) - .pipe(gulp.dest(path.join(DIST, build.package, 'lib'))), - ), + .pipe(gulp.dest(path.join(DIST, build.package, 'lib'))) + ) ); }); @@ -287,8 +287,8 @@ gulp.task('copy-files', function() { .src(['*' + PACKAGES + '/' + build.package + '/*.graphql']) .pipe(flatten()) .pipe(gulp.dest(path.join(DIST, build.package, 'lib'))), - ]), - ), + ]) + ) ); }); @@ -299,8 +299,8 @@ gulp.task('exports', ['copy-files', 'modules'], function() { path.join(DIST, build.package, exportName + '.js'), PRODUCTION_HEADER + `\nmodule.exports = require('./lib/${build.exports[exportName]}');`, - ), - ), + ) + ) ); }); @@ -315,10 +315,10 @@ gulp.task('bins', ['modules'], function() { .pipe(buildDist(bin.output, bin, /* isProduction */ false)) .pipe(header(SCRIPT_HASHBANG + PRODUCTION_HEADER)) .pipe(chmod(0o755)) - .pipe(gulp.dest(path.join(DIST, build.package, 'bin'))), - ), - ), - ), + .pipe(gulp.dest(path.join(DIST, build.package, 'bin'))) + ) + ) + ) ); }); @@ -334,14 +334,14 @@ gulp.task('bundles', ['modules'], function() { bundle.output + '.js', bundle, /* isProduction */ false, - ), + ) ) .pipe(derequire()) .pipe(header(DEVELOPMENT_HEADER)) - .pipe(gulp.dest(path.join(DIST, build.package))), - ), - ), - ), + .pipe(gulp.dest(path.join(DIST, build.package))) + ) + ) + ) ); }); @@ -360,10 +360,10 @@ gulp.task('bundles:min', ['modules'], function() { ), ) .pipe(header(PRODUCTION_HEADER)) - .pipe(gulp.dest(path.join(DIST, build.package))), - ), - ), - ), + .pipe(gulp.dest(path.join(DIST, build.package))) + ) + ) + ) ); });