gulp/versioning.js
function createBumpVersion(inPath, type) {
    if (!inPath) {
        throw new Error('Input path(s) argument is required');
    }

    return function bumpVersion() {
        return gulp.src(inPath)
            .pipe(bump({ type }))
            .pipe(gulp.dest(file => file.base));
    };
}
function createBumpVersion(inPath, type) {
    if (!inPath) {
        throw new Error('Input path(s) argument is required');
    }

    return function bumpVersion() {
        return gulp.src(inPath)
            .pipe(bump({ type }))
            .pipe(gulp.dest(file => file.base));
    };
}
function createBumpVersion ( inPath , type ) { if ( ! inPath ) { throw new Error ( 'Input path(s) argument is required' ) ; } return function bumpVersion ( ) { return gulp . src ( inPath ) . pipe ( bump ( { type } ) ) . pipe ( gulp . dest ( file => file . base ) ) ; } ; }
Higher order function to create gulp function that bumps the version in the package.json.
@param  {string} inPath Path to the project's package.json
@return {function} Function that can be used as a gulp task
Higher order function to create gulp function that bumps the version in the package . json .