Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
chore(build): various fixes to the changelog task
Browse files Browse the repository at this point in the history
  • Loading branch information
pkozlowski-opensource authored and ajoslin committed Jun 22, 2013
1 parent 465ad14 commit 56fd692
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 27 deletions.
3 changes: 2 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ module.exports = function(grunt) {
changelog: {
options: {
dest: 'CHANGELOG.md',
templateFile: 'misc/changelog.tpl.md'
templateFile: 'misc/changelog.tpl.md',
github: 'angular-ui/bootstrap'
}
},
shell: {
Expand Down
39 changes: 16 additions & 23 deletions misc/changelog.tpl.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@

# <%= version%> (<%= today%>)

<% if (_(changelog.feat).size() > 0) { %> ## Features
<% _(changelog.feat).forEach(function(changes, scope) { %>
- **<%= scope%>:**
<% changes.forEach(function(change) { %> - <%= change.msg%> (<%= helpers.commitLink(change.sha1) %>)
<% }); %>
<% }); %> <% } %>

<% if (_(changelog.fix).size() > 0) { %> ## Fixes
<% _(changelog.fix).forEach(function(changes, scope) { %>
- **<%= scope%>:**
<% changes.forEach(function(change) { %> - <%= change.msg%> (<%= helpers.commitLink(change.sha1) %>)
<% }); %>
<% }); %> <% } %>

<% if (_(changelog.breaking).size() > 0) { %> ## Breaking Changes
<% _(changelog.breaking).forEach(function(changes, scope) { %>
- **<%= scope%>:**
<% changes.forEach(function(change) { %> <%= change.msg%>
<% }); %>
<% }); %> <% } %>
# <%= version%> (<%= today%>)
<% if (_(changelog.feat).size() > 0) { %>
## Features
<% _(changelog.feat).keys().sort().forEach(function(scope) { %>
- **<%= scope%>:** <% changelog.feat[scope].forEach(function(change) { %>
- <%= change.msg%> (<%= helpers.commitLink(change.sha1) %>) <% }); %><% }); %> <% } %>
<% if (_(changelog.fix).size() > 0) { %>
## Bug Fixes
<% _(changelog.fix).keys().sort().forEach(function(scope) { %>
- **<%= scope%>:** <% changelog.fix[scope].forEach(function(change) { %>
- <%= change.msg%> (<%= helpers.commitLink(change.sha1) %>) <% }); %><% }); %> <% } %>
<% if (_(changelog.breaking).size() > 0) { %>
## Breaking Changes
<% _(changelog.breaking).keys().sort().forEach(function(scope) { %>
- **<%= scope%>:** <% changelog.breaking[scope].forEach(function(change) { %>
<%= change.msg%><% }); %><% }); %> <% } %>
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
"dependencies": {},
"devDependencies": {
"grunt": "~0.4.1",
"node-markdown": "0.1.1",
"grunt-ngdocs": "~0.1.1",
"grunt-conventional-changelog": "~0.1.1",
"grunt-contrib-concat": "~0.1.3",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-uglify": "~0.2.0",
"grunt-contrib-watch": "~0.3.1",
"grunt-contrib-jshint": "~0.4.0",
"grunt-html2js": "~0.1.3",
"grunt-karma": "~0.4.4",
"node-markdown": "0.1.1",
"semver": "~1.1.4",
"shelljs": "~0.1.4",
"grunt-ngdocs": "git://github.com/m7r/grunt-ngdocs"
"shelljs": "~0.1.4"
}
}

0 comments on commit 56fd692

Please sign in to comment.