gulp/changelog.js
function createFormatChangelog(inPath) {
    if (!inPath) {
        throw new Error('Input path argument is required');
    }

    return function formatChangelog() {
        return gulp.src(inPath)
            // Replace all version compare links.
            .pipe(replace(/\(http.*\) /g, ' '))
            // Replace all commit links.
            .pipe(replace(/ \(\[.*/g, ''))
            .pipe(gulp.dest(file => file.base));
    };
}
function createFormatChangelog(inPath) {
    if (!inPath) {
        throw new Error('Input path argument is required');
    }

    return function formatChangelog() {
        return gulp.src(inPath)
            // Replace all version compare links.
            .pipe(replace(/\(http.*\) /g, ' '))
            // Replace all commit links.
            .pipe(replace(/ \(\[.*/g, ''))
            .pipe(gulp.dest(file => file.base));
    };
}
function createFormatChangelog ( inPath ) { if ( ! inPath ) { throw new Error ( 'Input path argument is required' ) ; } return function formatChangelog ( ) { return gulp . src ( inPath ) // Replace all version compare links. . pipe ( replace ( / \(http.*\)  / g , ' ' ) ) // Replace all commit links. . pipe ( replace ( /  \(\[.* / g , '' ) ) . pipe ( gulp . dest ( file => file . base ) ) ; } ; }
Higher order function to create gulp function that strips links to the git repository from
changelogs generated by conventional changelog.
@param  {string} inPath The path for the project's changelog
@return {function} Function that can be used as a gulp task
Higher order function to create gulp function that strips links to the git repository from changelogs generated by conventional changelog .