gulpfile.js
function exposeBundles(b){
    b.add("./" + packageConfig.main, {expose: packageConfig.name });
    if(packageConfig.sniper !== undefined && packageConfig.sniper.exposed !== undefined){
        for(var i=0; i<packageConfig.sniper.exposed.length; i++){
            b.require(packageConfig.sniper.exposed[i]);
        }
    }
}
function exposeBundles(b){
    b.add("./" + packageConfig.main, {expose: packageConfig.name });
    if(packageConfig.sniper !== undefined && packageConfig.sniper.exposed !== undefined){
        for(var i=0; i<packageConfig.sniper.exposed.length; i++){
            b.require(packageConfig.sniper.exposed[i]);
        }
    }
}
function exposeBundles ( b ) { b . add ( "./" + packageConfig . main , { expose : packageConfig . name } ) ; if ( packageConfig . sniper !== undefined && packageConfig . sniper . exposed !== undefined ) { for ( var i = 0 ; i < packageConfig . sniper . exposed . length ; i ++ ) { b . require ( packageConfig . sniper . exposed [ i ] ) ; } } }
exposes the main package + checks the config whether it should expose other packages
exposes the main package + checks the config whether it should expose other packages