From ba67b987f8db92c81668b9de8d27360d5fa73259 Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Sat, 29 Oct 2016 15:46:07 -0500 Subject: [PATCH] chore(build): Generate core changelog using tag ranges --- package.json | 1 + scripts/show_changelog.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5fd24353..540d3ac2 100644 --- a/package.json +++ b/package.json @@ -57,6 +57,7 @@ "@types/jquery": "^1.10.31", "conventional-changelog": "^1.1.0", "conventional-changelog-cli": "^1.1.1", + "conventional-changelog-ui-router-core": "^1.3.0", "jasmine-core": "^2.4.1", "karma": "^1.2.0", "karma-chrome-launcher": "~0.1.0", diff --git a/scripts/show_changelog.js b/scripts/show_changelog.js index 6c6c218b..4399e11d 100755 --- a/scripts/show_changelog.js +++ b/scripts/show_changelog.js @@ -3,7 +3,7 @@ let conventionalChangelog = require('conventional-changelog'); let options = { - preset: 'angular' + preset: 'ui-router-core' }; if(require.main === module) { @@ -24,5 +24,6 @@ if(require.main === module) { } function showChangelog(context, gitOpts) { - conventionalChangelog(options, context, gitOpts).pipe(process.stdout); + var writerOpts = { doFlush: true, generateOn: function() { return false; } }; + conventionalChangelog(options, context, gitOpts, undefined, writerOpts).pipe(process.stdout); }