diff options
author | 2017-05-04 07:48:42 -0400 | |
---|---|---|
committer | 2017-05-04 12:28:17 -0400 | |
commit | b54df0ddd0c6a0372327c5aa3668e5a6458fcd64 (patch) | |
tree | e69cfa9b314a801bd187cf0145d1d4306436229c /ecomp-portal-FE/client/bower_components/hammerjs/changelog.js | |
parent | 39d1e62c84041831bfc52cca73b5ed5efaf57d27 (diff) |
[PORTAL-7] Rebase
This rebasing includes common libraries and common overlays projects
abstraction of components
Change-Id: I9a24a338665c7cd058978e8636bc412d9e2fdce8
Signed-off-by: st782s <statta@research.att.com>
Diffstat (limited to 'ecomp-portal-FE/client/bower_components/hammerjs/changelog.js')
-rw-r--r-- | ecomp-portal-FE/client/bower_components/hammerjs/changelog.js | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/ecomp-portal-FE/client/bower_components/hammerjs/changelog.js b/ecomp-portal-FE/client/bower_components/hammerjs/changelog.js deleted file mode 100644 index 887a3292..00000000 --- a/ecomp-portal-FE/client/bower_components/hammerjs/changelog.js +++ /dev/null @@ -1,71 +0,0 @@ -var changelog = require( "changelogplease" ); -var gittags = require( "git-tags" ).get( function( error, tags ) { - if ( error ) { - throw error - } - console.log( tags[ 1 ] + ".." + tags[ 0 ] ); - var exclude = [ "Merge", "Whitespace", "Fixup", "Cleanup", "Formatting", "Ignore" ]; - changelog( { - ticketUrl: "https://github.com/hammerjs/hammer.js/issues/{id}", - commitUrl: "https://github.com/hammerjs/hammerjs/commit/{id}", - sort: false, - repo: "./", - committish: tags[ 1 ] + ".." + tags[ 0 ] - }, function( error, log ) { - if ( error ) { - throw error; - } - log = parseLog( log ); - console.log( log ); - } ); - function parseLog( log ) { - var lines = log.split( "\n" ); - var newLog = []; - var log = []; - var currentComponent; - - - lines.shift(); - lines.forEach( function( line ) { - var newLine = parseLine( line ); - if ( newLine ) { - log.push( line ); - } - } ); - var log = log.join( "\n" ); - return log.replace( /\*/g, "-" ).replace( /__TICKETREF__,/g, "" ); - } - function parseLine( line ) { - var parts = getParts( line ); - - if ( exclude.indexOf( parts.component ) > -1 ) { - return false; - } - return parts; - } - function getParts( line ) { - var parts = line.split( ":" ); - var component = ""; - var message; - var commits = line.match( /\{\{([A-Za-z0-9 ]){0,99}\}\}/ ) - - if ( parts.length > 1 && parts[ 0 ].length <= 20 ) { - component = parts[ 0 ]; - parts.shift(); - message = parts.join( ":" ); - } else { - parts = line.split( " " ); - component = parts[ 1 ]; - parts.shift(); - message = parts.join( " " ); - } - - if ( component ) { - component = component.replace( /\* |,/, "" ); - } - return { - component: component, - message: message - }; - } -} ); |