gulpfile.js
function transposeDependencies() {
        sourcePackages.forEach(function(p) {
          if (p.name === fnCallName) {
            // Do not transpose the call package itself. After this loop
            // there should be only one dependency on the build function anymore.
            return;
          }
          var index = p.dependencies.indexOf(fnName);
          if (index !== -1) {
            p.dependencies.splice(index, 1, fnCallName);
          }
        });
      }
function transposeDependencies() {
        sourcePackages.forEach(function(p) {
          if (p.name === fnCallName) {
            // Do not transpose the call package itself. After this loop
            // there should be only one dependency on the build function anymore.
            return;
          }
          var index = p.dependencies.indexOf(fnName);
          if (index !== -1) {
            p.dependencies.splice(index, 1, fnCallName);
          }
        });
      }
function transposeDependencies ( ) { sourcePackages . forEach ( function ( p ) { if ( p . name === fnCallName ) { // Do not transpose the call package itself. After this loop // there should be only one dependency on the build function anymore. return ; } var index = p . dependencies . indexOf ( fnName ) ; if ( index !== - 1 ) { p . dependencies . splice ( index , 1 , fnCallName ) ; } } ) ; }
Step through all source packages and transpose dependencies on the build function to be dependent on the function call instead, ensuring that the function is finally called. Although we could simply push the call body into the build package, this way allows the source to be faithfully rebuilt no matter where the build call occurs.
Step through all source packages and transpose dependencies on the build function to be dependent on the function call instead ensuring that the function is finally called . Although we could simply push the call body into the build package this way allows the source to be faithfully rebuilt no matter where the build call occurs .