Skip to content

Commit

Permalink
Update gulpfile.js
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Feb 10, 2018
1 parent 181455c commit 96f1be6
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -131,7 +131,7 @@ const buildDist = function(filename, opts, isProduction) {
screw_ie8: true,
warnings: false,
},
}),
})
);
}
return webpackStream(webpackOpts, null, function(err, stats) {
Expand Down Expand Up @@ -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')))
)
);
});

Expand All @@ -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'))),
]),
),
])
)
);
});

Expand All @@ -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]}');`,
),
),
)
)
);
});

Expand All @@ -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')))
)
)
)
);
});

Expand All @@ -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)))
)
)
)
);
});

Expand All @@ -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)))
)
)
)
);
});

Expand Down

0 comments on commit 96f1be6

Please sign in to comment.