Skip to content

Commit

Permalink
tweak release task and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
davetayls committed Jun 23, 2015
1 parent b40fc9c commit a5487f4
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 10 deletions.
15 changes: 11 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
]);
});

};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
21 changes: 16 additions & 5 deletions readme.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.


0 comments on commit a5487f4

Please sign in to comment.