Skip to content

Commit

Permalink
refactor(gulp): remove redundant getPackageVersion function
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveVanOpstal committed Feb 21, 2016
1 parent 5dacb35 commit 8412e45
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,13 @@ gulp.task('push-changes', function (cb) {
});

gulp.task('create-new-tag', function (cb) {
var version = getPackageJsonVersion();
var version = JSON.parse(fs.readFileSync('./package.json', 'utf8')).version;
git.tag(version, 'Created Tag for version: ' + version, function (error) {
if (error) {
return cb(error);
}
git.push('origin', 'master', {args: '--tags'}, cb);
});

function getPackageJsonVersion () {
return JSON.parse(fs.readFileSync('./package.json', 'utf8')).version;
};
});

gulp.task('release', function (callback) {
Expand Down

0 comments on commit 8412e45

Please sign in to comment.