grunt-checkbranch
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -30,2 +30,11 @@ 'use strict'; | ||
} | ||
}, | ||
"bump": { | ||
"options": { | ||
commitMessage: 'release %VERSION%', | ||
commitFiles: [ "-a" ], | ||
tagName: '%VERSION%', | ||
tagMessage: 'version %VERSION%', | ||
pushTo: 'origin' | ||
} | ||
} | ||
@@ -39,5 +48,6 @@ | ||
// These plugins provide necessary tasks. | ||
grunt.loadNpmTasks('grunt-checkpending'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-clean'); | ||
grunt.loadNpmTasks('grunt-release'); | ||
grunt.loadNpmTasks('grunt-bump'); | ||
grunt.loadNpmTasks('grunt-buster'); | ||
@@ -52,2 +62,10 @@ | ||
grunt.registerTask("release", function () { | ||
var bump = grunt.option("bump"); | ||
if (bump !== "patch" && bump !== "minor" && bump !== "major") { | ||
grunt.fail.fatal("Please pass --bump"); | ||
} | ||
grunt.task.run(["checkbranch:master", "checkpending", "default", "bump:" + bump]); | ||
}); | ||
}; |
{ | ||
"name": "grunt-checkbranch", | ||
"description": "Check that we are on a correct Git branch before proceeding.", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"homepage": "https://github.com/dymonaz/grunt-checkbranch", | ||
@@ -29,3 +29,3 @@ "author": { | ||
"scripts": { | ||
"test": "grunt test --verbose" | ||
"test": "grunt --verbose" | ||
}, | ||
@@ -35,7 +35,8 @@ "devDependencies": { | ||
"grunt": "~0.4.1", | ||
"grunt-bump": "^0.3.0", | ||
"grunt-buster": "~0.3.1", | ||
"grunt-checkpending": "^0.1.7", | ||
"grunt-cli": "^0.1.13", | ||
"grunt-contrib-clean": "~0.6.0", | ||
"grunt-contrib-jshint": "~0.11.0", | ||
"grunt-release": "~0.12.0" | ||
"grunt-contrib-jshint": "~0.11.0" | ||
}, | ||
@@ -42,0 +43,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
11408
12
186
8