tasks/stamp.js
function(path, stamp) {
        var name = sysPath.basename(path);
        var ext = sysPath.extname(name);
        var stub = path.slice(0, name ? (-name.length) : path.length - 1);
        if (ext.length) {
          name = name.slice(0, -ext.length);
        }

        //Ignore leading dot
        if ('.' === ext[0]) {
          ext = ext.slice(1);
        }

        return urljoin(stub, options.buildFileName(name, ext, stamp));
      }
function(path, stamp) {
        var name = sysPath.basename(path);
        var ext = sysPath.extname(name);
        var stub = path.slice(0, name ? (-name.length) : path.length - 1);
        if (ext.length) {
          name = name.slice(0, -ext.length);
        }

        //Ignore leading dot
        if ('.' === ext[0]) {
          ext = ext.slice(1);
        }

        return urljoin(stub, options.buildFileName(name, ext, stamp));
      }
function ( path , stamp ) { var name = sysPath . basename ( path ) ; var ext = sysPath . extname ( name ) ; var stub = path . slice ( 0 , name ? ( - name . length ) : path . length - 1 ) ; if ( ext . length ) { name = name . slice ( 0 , - ext . length ) ; } //Ignore leading dot if ( '.' === ext [ 0 ] ) { ext = ext . slice ( 1 ) ; } return urljoin ( stub , options . buildFileName ( name , ext , stamp ) ) ; }
Merge stamp into filename
@param  {String} path
@param  {String} stamp
Merge stamp into filename