Skip to content

Commit d5fba25

Browse files
committed
chore(grunt): adds grunt-conventional-changelog plugin
this plugin let's us autogenerate changelogs, all we have to do is to follow the convetions this commit message follows the angular.js project itself uses this convention too we could then also somehow integrate the changelog task in one of the release tasks
1 parent ae36fba commit d5fba25

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed

Gruntfile.js

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ module.exports = function (grunt) {
88
grunt.loadNpmTasks('grunt-contrib-watch');
99
grunt.loadNpmTasks('grunt-contrib-connect');
1010
grunt.loadNpmTasks('grunt-karma');
11+
grunt.loadNpmTasks('grunt-conventional-changelog');
1112

1213
// Project configuration.
1314
grunt.initConfig({
@@ -83,18 +84,23 @@ module.exports = function (grunt) {
8384
}
8485
}
8586
},
86-
karma: {
87-
options: {
88-
configFile: 'config/karma.js'
89-
},
90-
unit: {
91-
singleRun: true
87+
karma: {
88+
options: {
89+
configFile: 'config/karma.js'
90+
},
91+
unit: {
92+
singleRun: true
93+
},
94+
background: {
95+
background: true,
96+
browsers: [ grunt.option('browser') || 'PhantomJS' ]
97+
}
9298
},
93-
background: {
94-
background: true,
95-
browsers: [ grunt.option('browser') || 'PhantomJS' ]
99+
changelog: {
100+
options: {
101+
dest: 'CHANGELOG.md'
102+
}
96103
}
97-
}
98104
});
99105

100106
grunt.registerTask('default', ['build', 'jshint', 'karma:unit']);

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"karma-script-launcher": "~0.1.0",
4848
"karma-coffee-preprocessor": "~0.1.0",
4949
"karma": "~0.10.1",
50-
"karma-phantomjs-launcher": "~0.1.0"
50+
"karma-phantomjs-launcher": "~0.1.0",
51+
"grunt-conventional-changelog": "~1.0.0"
5152
}
5253
}

0 commit comments

Comments
 (0)