gulpfile.js
//function for version lookup and tagging

function for version lookup and tagging
function for version lookup and tagging
function inc(importance) {
    var newVer = semver.inc(version, importance);
    gulp.src('./src/appConfig.js')
        .pipe(replace(/configuration.version = "([^"]+)"/g, 'configuration.version = "' + newVer + '"'))
        .pipe(gulp.dest('./src/'));
    gulp.src('./dist/appConfig.js')
        .pipe(replace(/configuration.version = "([^"]+)"/g, 'configuration.version = "' + newVer + '"'))
        .pipe(gulp.dest('./dist/'));
    gulp.src(['package.json'])
        .pipe(bump({ type: importance }))
        .pipe(gulp.dest(function(file) {
            return file.base;
        }))
        .pipe(git.commit('Release v' + newVer))
        .pipe(git.tag('v' + newVer, 'Version message', function (err) {
            if (err) throw err;
        }));
}
function inc ( importance ) { var newVer = semver . inc ( version , importance ) ; gulp . src ( './src/appConfig.js' ) . pipe ( replace ( / configuration.version = "([^"]+)" / g , 'configuration.version = "' + newVer + '"' ) ) . pipe ( gulp . dest ( './src/' ) ) ; gulp . src ( './dist/appConfig.js' ) . pipe ( replace ( / configuration.version = "([^"]+)" / g , 'configuration.version = "' + newVer + '"' ) ) . pipe ( gulp . dest ( './dist/' ) ) ; gulp . src ( [ 'package.json' ] ) . pipe ( bump ( { type : importance } ) ) . pipe ( gulp . dest ( function ( file ) { return file . base ; } ) ) . pipe ( git . commit ( 'Release v' + newVer ) ) . pipe ( git . tag ( 'v' + newVer , 'Version message' , function ( err ) { if ( err ) throw err ; } ) ) ; }
function for version lookup and tagging
function for version lookup and tagging
//get new version number
 //bump appConfig version
 //.pipe(git.add());
 //.pipe(git.add());
 // get all the files to bump version in 
 // bump the version number in those files 
 // save it back to filesystem 
 // commit the changed version number 
 // **tag it in the repository** 
 //.pipe(git.tag('v' + newVer));
