| 
									
										
										
										
											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'); | 
					
						
							| 
									
										
										
										
											2018-09-06 14:13:42 +03:00
										 |  |  |   const ignoredScopes = [ | 
					
						
							|  |  |  |     'aio', | 
					
						
							| 
									
										
										
										
											2020-03-10 08:11:09 -07:00
										 |  |  |     'dev-infra', | 
					
						
							| 
									
										
										
										
											2018-09-06 14:13:42 +03:00
										 |  |  |     'docs-infra', | 
					
						
							| 
									
										
										
										
											2019-06-26 18:17:07 +02:00
										 |  |  |     'zone.js', | 
					
						
							| 
									
										
										
										
											2018-09-06 14:13:42 +03:00
										 |  |  |   ]; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-02-03 08:10:41 +00:00
										 |  |  |   return gulp.src('CHANGELOG.md') | 
					
						
							| 
									
										
										
										
											2018-09-06 14:13:42 +03:00
										 |  |  |       .pipe(conventionalChangelog({preset: 'angular'}, {}, { | 
					
						
							|  |  |  |         // Ignore commits that start with `<type>(<scope>)` for any of the ignored scopes.
 | 
					
						
							|  |  |  |         extendedRegexp: true, | 
					
						
							|  |  |  |         grep: `^[^(]+\\((${ignoredScopes.join('|')})\\)`, | 
					
						
							|  |  |  |         invertGrep: true, | 
					
						
							|  |  |  |       })) | 
					
						
							| 
									
										
										
										
											2017-02-03 08:10:41 +00:00
										 |  |  |       .pipe(gulp.dest('./')); | 
					
						
							|  |  |  | }; |