Skip to content

Commit b0cd06e

Browse files
author
Steve Mao
committed
chore(build): use gulp-conventional-changelog
gulp-conventional-changelog is using the latest conventional-changelog which has a ton of bug fixes and improvements over the old release.
1 parent f8a45d7 commit b0cd06e

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ doc/
1414
.coveralls.yml
1515
coverage/
1616
/screenshots
17-
changelog.js
18-
write-changelog.js
1917
test/fixtures/multi/
2018
before.json
2119
after.json

gulpfile.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var contribs = require("gulp-contribs");
77
var rubySass = require("gulp-ruby-sass");
88
var filter = require("gulp-filter");
99
var browserSync = require("./");
10+
var conventionalChangelog = require("gulp-conventional-changelog");
1011

1112
gulp.task("lint", function () {
1213
gulp.src([
@@ -92,3 +93,13 @@ gulp.task("docs", function () {
9293
.pipe(yuidoc.parser({spaces: 4}))
9394
.pipe(gulp.dest("./doc"));
9495
});
96+
97+
gulp.task("changelog", function () {
98+
return gulp.src("CHANGELOG.md", {
99+
buffer: false
100+
})
101+
.pipe(conventionalChangelog({
102+
preset: "angular"
103+
}))
104+
.pipe(gulp.dest("./"));
105+
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@
6262
"bs-snippet-injector": "^2.0.1",
6363
"chai": "^3.2.0",
6464
"chalk": "^1.1.0",
65-
"conventional-changelog": "^0.0.17",
6665
"graceful-fs": "^3.0.8",
6766
"gulp": "^3.9.0",
6867
"gulp-contribs": "0.0.3",
68+
"gulp-conventional-changelog": "^0.4.0",
6969
"gulp-filter": "^2.0.2",
7070
"gulp-jscs": "^1.6.0",
7171
"gulp-jshint": "^1.11.2",

0 commit comments

Comments
 (0)