Skip to content

Commit 8070d90

Browse files
committed
Update gulpfile for 4.0 compatibility
1 parent f915771 commit 8070d90

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

gulpfile.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@ function mergeBranch(branch) {
3838
/* ----- TASKS ----- */
3939

4040
// Bump version using NPM (only affects package*.json, doesn't commit).
41-
gulp.task('bump-version', function() {
41+
gulp.task('bump-version', function bumpVersion() {
4242
console.log('Bumping version number.');
4343
return exec('npm --no-git-tag-version version ' + args.newversion);
4444
});
4545

4646
// Stage a release (bump version and create a 'release/[version]' branch).
47-
gulp.task('stage-release', ['bump-version'], function() {
47+
gulp.task('stage-release', gulp.series('bump-version', function stageRelease() {
4848
var version = getVersion();
4949
var branch = 'release/' + version;
5050
var cmd = 'git checkout -b ' + branch + ' && git add -A';
5151
cmd += ' && git commit -m "Prepare release ' + version + '"';
5252

5353
console.log('Creating release branch and committing changes.');
5454
return exec(cmd);
55-
});
55+
}));
5656

57-
gulp.task('finalize-release', function() {
57+
gulp.task('finalize-release', function finalizeRelease() {
5858
var version = getVersion();
5959
var branch = 'release/' + version;
6060
var cmd = 'git checkout ' + branch + ' && npm run build';
@@ -70,12 +70,12 @@ gulp.task('finalize-release', function() {
7070
});
7171

7272
// Tag and merge the latest release into master/develop.
73-
gulp.task('release', ['finalize-release'], function() {
73+
gulp.task('release', gulp.series('finalize-release', function release() {
7474
var version = getVersion();
7575
var branch = 'release/' + version;
7676

7777
return mergeBranch(branch).then(function() {
7878
console.log('Deleting release branch.');
7979
return exec('git branch -d ' + branch);
8080
});
81-
});
81+
}));

0 commit comments

Comments
 (0)