| 
									
										
										
										
											2017-09-22 19:51:03 +02:00
										 |  |  | /** | 
					
						
							|  |  |  |  * @license | 
					
						
							|  |  |  |  * Copyright Google Inc. All Rights Reserved. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Use of this source code is governed by an MIT-style license that can be | 
					
						
							|  |  |  |  * found in the LICENSE file at https://angular.io/license
 | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-02-03 08:10:41 +00:00
										 |  |  | module.exports = (gulp) => () => { | 
					
						
							|  |  |  |   const conventionalChangelog = require('gulp-conventional-changelog'); | 
					
						
							|  |  |  |   return gulp.src('CHANGELOG.md') | 
					
						
							|  |  |  |       .pipe(conventionalChangelog({preset: 'angular', releaseCount: 1}, { | 
					
						
							|  |  |  |         // Conventional Changelog Context
 | 
					
						
							|  |  |  |         // We have to manually set version number so it doesn't get prefixed with `v`
 | 
					
						
							|  |  |  |         // See https://github.com/conventional-changelog/conventional-changelog-core/issues/10
 | 
					
						
							|  |  |  |         currentTag: require('../../package.json').version | 
					
						
							|  |  |  |       })) | 
					
						
							|  |  |  |       .pipe(gulp.dest('./')); | 
					
						
							|  |  |  | }; |