Skip to content

Commit

Permalink
Merge pull request #188 from stevemao/changelog
Browse files Browse the repository at this point in the history
Changelog
  • Loading branch information
tivie committed Aug 27, 2015
2 parents 64009b2 + 22e3d64 commit c4e82d8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
26 changes: 22 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,28 @@ module.exports = function (grunt) {
}
},

changelog: {
conventionalChangelog: {
options: {
repository: 'http://github.com/showdownjs/showdown',
dest: 'CHANGELOG.md'
changelogOpts: {
preset: 'angular'
}
},
release: {
src: 'CHANGELOG.md'
}
},

conventionalGithubReleaser: {
release: {
options: {
auth: {
type: 'oauth',
token: process.env.GH_TOEKN
},
changelogOpts: {
preset: 'angular'
}
},
}
},

Expand Down Expand Up @@ -163,7 +181,7 @@ module.exports = function (grunt) {
grunt.registerTask('lint', ['jshint', 'jscs']);
grunt.registerTask('test', ['clean', 'lint', 'concat:test', 'simplemocha:node', 'clean']);
grunt.registerTask('build', ['test', 'concat:dist', 'uglify']);
grunt.registerTask('prep-release', ['build', 'changelog']);
grunt.registerTask('prep-release', ['build', 'conventionalChangelog']);

// Default task(s).
grunt.registerTask('default', ['test']);
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
"grunt-contrib-concat": "^0.5.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-uglify": "^0.6.0",
"grunt-conventional-changelog": "^1.1.0",
"grunt-conventional-changelog": "^4.0.0",
"grunt-conventional-github-releaser": "^0.3.0",
"grunt-jscs": "^1.2.0",
"grunt-simple-mocha": "^0.4.0",
"js-beautify": "^1.5.6",
Expand Down

0 comments on commit c4e82d8

Please sign in to comment.