lib/patsy.js
function(relativeProjectPath, relative){

      var src = [];
      var complete_path;
      var patsy = this;

      if(patsy.utils.isArray(relative)){
        // For each path, check if path is negated, if it is, remove negation
        relative.forEach(function(_path){

          if(patsy.utils.isPathNegated(_path)){

            _path = _path.slice(1);
            complete_path = '!' + relativeProjectPath + _path;
          } else {

            complete_path = relativeProjectPath + _path;
          }

          src.push(path.normalize(complete_path));

        });
      } else {

        if(patsy.utils.isPathNegated(relative)){

          var _path = relative.slice(1);
          complete_path = '!' + relativeProjectPath + _path;
        } else {

          complete_path = relativeProjectPath + relative;
        }

        src = path.normalize(complete_path);
      }


      return src;

    }
function(relativeProjectPath, relative){

      var src = [];
      var complete_path;
      var patsy = this;

      if(patsy.utils.isArray(relative)){
        // For each path, check if path is negated, if it is, remove negation
        relative.forEach(function(_path){

          if(patsy.utils.isPathNegated(_path)){

            _path = _path.slice(1);
            complete_path = '!' + relativeProjectPath + _path;
          } else {

            complete_path = relativeProjectPath + _path;
          }

          src.push(path.normalize(complete_path));

        });
      } else {

        if(patsy.utils.isPathNegated(relative)){

          var _path = relative.slice(1);
          complete_path = '!' + relativeProjectPath + _path;
        } else {

          complete_path = relativeProjectPath + relative;
        }

        src = path.normalize(complete_path);
      }


      return src;

    }
function ( relativeProjectPath , relative ) { var src = [ ] ; var complete_path ; var patsy = this ; if ( patsy . utils . isArray ( relative ) ) { // For each path, check if path is negated, if it is, remove negation relative . forEach ( function ( _path ) { if ( patsy . utils . isPathNegated ( _path ) ) { _path = _path . slice ( 1 ) ; complete_path = '!' + relativeProjectPath + _path ; } else { complete_path = relativeProjectPath + _path ; } src . push ( path . normalize ( complete_path ) ) ; } ) ; } else { if ( patsy . utils . isPathNegated ( relative ) ) { var _path = relative . slice ( 1 ) ; complete_path = '!' + relativeProjectPath + _path ; } else { complete_path = relativeProjectPath + relative ; } src = path . normalize ( complete_path ) ; } return src ; }
Update relative paths

@param   String  relativeProjectPah
@param   String|Array  relative
Update relative paths