-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(release): add changelog generation
- Loading branch information
1 parent
7afb16a
commit 44896e4
Showing
7 changed files
with
51 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ | |
"gulp": "^3.9.1", | ||
"gulp-babel": "^6.1.2", | ||
"gulp-bump": "^2.2.0", | ||
"gulp-conventional-changelog": "^1.1.0", | ||
"gulp-eslint": "^3.0.1", | ||
"gulp-filter": "^4.0.0", | ||
"gulp-git": "^1.10.0", | ||
|
@@ -89,4 +90,4 @@ | |
"dignifiedquire <[email protected]>", | ||
"greenkeeperio-bot <[email protected]>" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
'use strict' | ||
|
||
const $ = require('gulp-load-plugins')() | ||
|
||
module.exports = (gulp, done) => { | ||
const releaseCount = $.util.env.first ? 0 : 1 | ||
|
||
return gulp.src('CHANGELOG.md') | ||
.pipe($.conventionalChangelog({ | ||
preset: 'angular', | ||
releaseCount | ||
})) | ||
.pipe(gulp.dest('./')) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict' | ||
|
||
const $ = require('gulp-load-plugins')() | ||
|
||
const getVersion = require('../../src/utils').getVersion | ||
|
||
module.exports = (gulp, done) => { | ||
const newVersion = getVersion() | ||
|
||
return gulp.src(['package.json', 'CHANGELOG.md']) | ||
.pipe($.git.add()) | ||
.pipe($.git.commit(`chore: release version v${newVersion}`, {args: '-n'})) | ||
.pipe($.filter('package.json')) | ||
.pipe($.tagVersion()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters