gulpfile.js
function getSplitModule(content, constraints) {
    var src = '', lastIdx = 0, currentNamespace;
    content.replace(/\/\*\*\* @namespace (\w+) \*\*\*\/\n|$/g, function(match, nextNamespace, idx) {
      if (!currentNamespace || constraints[currentNamespace]) {
        src += content.slice(lastIdx, idx);
      }
      currentNamespace = (nextNamespace || '').toLowerCase();
      lastIdx = idx;
    });
    return src;
  }
function getSplitModule(content, constraints) {
    var src = '', lastIdx = 0, currentNamespace;
    content.replace(/\/\*\*\* @namespace (\w+) \*\*\*\/\n|$/g, function(match, nextNamespace, idx) {
      if (!currentNamespace || constraints[currentNamespace]) {
        src += content.slice(lastIdx, idx);
      }
      currentNamespace = (nextNamespace || '').toLowerCase();
      lastIdx = idx;
    });
    return src;
  }
function getSplitModule ( content , constraints ) { var src = '' , lastIdx = 0 , currentNamespace ; content . replace ( / \/\*\*\* @namespace (\w+) \*\*\*\/\n|$ / g , function ( match , nextNamespace , idx ) { if ( ! currentNamespace || constraints [ currentNamespace ] ) { src += content . slice ( lastIdx , idx ) ; } currentNamespace = ( nextNamespace || '' ) . toLowerCase ( ) ; lastIdx = idx ; } ) ; return src ; }
Split the module into namespaces here and match on the allowed one.
Split the module into namespaces here and match on the allowed one .