From a5487f47c8bd4d8a597bd6828796b5ffec2a3a6f Mon Sep 17 00:00:00 2001 From: davetayls Date: Tue, 23 Jun 2015 08:51:14 +0100 Subject: [PATCH] tweak release task and update readme --- Gruntfile.js | 15 +++++++++++---- package.json | 2 +- readme.mkd | 21 ++++++++++++++++----- 3 files changed, 28 insertions(+), 10 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index c008425..1544f7a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -86,10 +86,17 @@ module.exports = function(grunt) { // Default task. grunt.registerTask('default', ['jshint', 'qunit']); - grunt.registerTask('selenium', ['vows:local']); + //grunt.registerTask('selenium', ['vows:local']); not used any more grunt.registerTask('sauce', ['vows:sauce']); - grunt.registerTask('minor', ['bump:minor']); - grunt.registerTask('patch', ['bump']); - grunt.registerTask('release', ['default','string-replace:version','uglify']); + grunt.registerTask('release', function(release) { + release = release || 'patch'; + grunt.task.run([ + 'bump-only:' + release, + 'default', + 'string-replace:version', + 'uglify', + 'bump-commit' + ]); + }); }; diff --git a/package.json b/package.json index 4e66df1..9b5f32a 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "vows": "0.7.x", "underscore": "1.7.x", "grunt-vows": "0.4.x", - "grunt-bump": "0.0.x", + "grunt-bump": "0.3.x", "grunt-string-replace": "0.2.x", "grunt-contrib-jshint": "0.10.x", "grunt-contrib-qunit": "0.5.x", diff --git a/readme.mkd b/readme.mkd index 2a87285..427d15f 100644 --- a/readme.mkd +++ b/readme.mkd @@ -166,8 +166,24 @@ Then run from the root of the source There are manual tests as html files within the `/test` folder. +Releasing a new version +----------------------- + +Releasing a small fix or change. The following will update the patch version +number. + + $ grunt release + +Releasing a potentially breaking feature. The following will update the minor +version number. + + $ grunt release:minor + Changes ------- +### 2.1.0 + - Added `threshold` option (@UziTech) https://github.com/davetayls/jquery.kinetic/pull/84 + ### 2.0.6 - Fix touch and mouse bindings so that an external pointing device can be used with a touchscreen device. @@ -244,8 +260,3 @@ After several years, this plugin has had a major refactor. Big thanks to (@skovh -Notes ------ -The scrollbar plugin is still very much an alpha version. - -