Skip to content

Commit

Permalink
Merge pull request #282 from hoodiehq/chore-release-process
Browse files Browse the repository at this point in the history
Release Process
  • Loading branch information
svnlto committed Jun 3, 2014
2 parents 212e5f4 + d590e81 commit dc95964
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 10 deletions.
Empty file added CHANGELOG.md
Empty file.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Please have a look at the [contribution guide in our main repository](https://github.com/hoodiehq/hoodie.js/blob/master/CONTRIBUTING.md).
31 changes: 27 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
module.exports = function (grunt) {

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
require('load-grunt-tasks')(grunt);

// Project configuration.
grunt.initConfig({

bump: {
options: {
commitMessage: 'chore(release): v%VERSION%',
files: ['package.json'],
commitFiles: [
'package.json',
'CHANGELOG.md'
],
pushTo: 'origin master'
}
},

watch: {
files: ['<%= jshint.files %>'],
tasks: 'jshint'
Expand Down Expand Up @@ -38,6 +47,20 @@ module.exports = function (grunt) {

});

grunt.registerTask('release', function () {

// Forward arguments to the bump-only task
this.args.unshift('bump-only');

grunt.task.run([
'test',
this.args.join(':'),
'changelog',
'bump-commit'
]);

});

// Default task.
grunt.registerTask('default', [
'jshint',
Expand Down
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,18 @@
"node": ">=0.10.22"
},
"devDependencies": {
"mocha": "*",
"grunt": "^0.4.1",
"expect.js": "^0.2.0",
"grunt-simple-mocha": "^0.4.0",
"grunt-contrib-nodeunit": "^0.2.2",
"sinon": "^1.7.3",
"grunt": "^0.4.1",
"grunt-bump": "0.0.14",
"grunt-contrib-jshint": "^0.6.2",
"grunt-contrib-nodeunit": "^0.2.2",
"grunt-contrib-watch": "^0.5.1",
"rimraf": "^2.2.2"
"grunt-conventional-changelog": "^1.1.0",
"grunt-simple-mocha": "^0.4.0",
"load-grunt-tasks": "^0.4.0",
"mocha": "*",
"rimraf": "^2.2.2",
"sinon": "^1.7.3"
},
"hoodie": {
"plugins": []
Expand Down

0 comments on commit dc95964

Please sign in to comment.