From 39e8458792eba9030d6eb9c5d9d345b4338385e0 Mon Sep 17 00:00:00 2001 From: Tunghsiao Liu Date: Tue, 11 Aug 2015 16:26:57 +0800 Subject: [PATCH] feat(grunt): update `conventionalChangelog` --- Gruntfile.coffee | 10 +++++++++- package.json | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Gruntfile.coffee b/Gruntfile.coffee index 18dc9b1e7..fdc9c2214 100644 --- a/Gruntfile.coffee +++ b/Gruntfile.coffee @@ -373,6 +373,14 @@ module.exports = (grunt) -> ] notify: true + conventionalChangelog: + options: + changelogOpts: + preset: "angular" + + release: + src: "CHANGELOG.md" + bump: options: files: ["package.json"] @@ -441,7 +449,7 @@ module.exports = (grunt) -> grunt.registerTask "release", "Build, bump and commit", (type) -> grunt.task.run [ "bump-only:#{type or 'patch'}" - "changelog" + "conventionalChangelog" "bump-commit" ] diff --git a/package.json b/package.json index f5c294205..ca1433b6f 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "grunt-contrib-less": "^1.0.1", "grunt-contrib-uglify": "^0.9.1", "grunt-contrib-watch": "^0.6.1", - "grunt-conventional-changelog": "^1.2.2", + "grunt-conventional-changelog": "^4.0.0", "grunt-csscomb": "^3.0.1", "grunt-html-smoosher": "sparanoid/grunt-html-smoosher", "grunt-jekyll": "^0.4.2",