Skip to content

Commit

Permalink
Remove unnecessary formatting changes from gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cgewecke committed Dec 10, 2019
1 parent 85bdd21 commit 38c5c54
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ var ugliyOptions = {
}
};

gulp.task('version', function () {
gulp.task('version', function() {
if (!lernaJSON.version) {
throw new Error('version property is missing from lerna.json');
}
Expand All @@ -140,27 +140,27 @@ gulp.task('version', function () {
.pipe(gulp.dest('./'));
});

gulp.task('bower', gulp.series('version', function (cb) {
bower.commands.install().on('end', function (installed) {
gulp.task('bower', gulp.series('version', function(cb) {
bower.commands.install().on('end', function(installed) {
console.log(installed);
cb();
});
}));

gulp.task('lint', function () {
gulp.task('lint', function() {
return gulp.src(['./*.js', './lib/*.js'])
.pipe(jshint())
.pipe(jshint.reporter('default'));
});

gulp.task('clean', gulp.series('lint', function (cb) {
gulp.task('clean', gulp.series('lint', function(cb) {
del([DEST]).then(cb.bind(null, null));
}));

packages.forEach(function (pckg, i) {
packages.forEach(function(pckg, i) {
var prevPckg = (!i) ? 'clean' : packages[i - 1].fileName;

gulp.task(pckg.fileName, gulp.series(prevPckg, function () {
gulp.task(pckg.fileName, gulp.series(prevPckg, function() {
browserifyOptions.standalone = pckg.expose;

var stream = browserify(browserifyOptions)
Expand All @@ -170,7 +170,7 @@ packages.forEach(function (pckg, i) {
.add(pckg.src);

if (pckg.ignore) {
pckg.ignore.forEach(function (ignore) {
pckg.ignore.forEach(function(ignore) {
stream.ignore(ignore);
});
}
Expand Down Expand Up @@ -212,7 +212,7 @@ packages.forEach(function (pckg, i) {
stream = stream
.pipe(gulp.dest(DEST))
.pipe(streamify(uglify(ugliyOptions)))
.on('error', function (err) {
.on('error', function(err) {
console.error(err);
})
.pipe(rename(pckg.fileName + '.min.js'));
Expand All @@ -227,11 +227,11 @@ packages.forEach(function (pckg, i) {
}));
});

gulp.task('publishTag', function () {
gulp.task('publishTag', function() {
exec('git commit -am "add tag v' + lernaJSON.version + '"; git tag v' + lernaJSON.version + '; git push origin v' + lernaJSON.version + ';');
});

gulp.task('watch', function () {
gulp.task('watch', function() {
gulp.watch(['./packages/web3/src/*.js'], gulp.series('lint', 'default'));
});

Expand Down

0 comments on commit 38c5c54

Please sign in to comment.