mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-03 09:05:37 +08:00
20 lines
594 B
JavaScript
20 lines
594 B
JavaScript
var gruntUtils = require('../../../lib/grunt/utils');
|
|
var versionInfo = require('../../../lib/versions/version-info');
|
|
|
|
module.exports = {
|
|
name: 'git-data',
|
|
runBefore: ['reading-files'],
|
|
description: 'This processor adds information from the local git repository to the extraData injectable',
|
|
exports: {
|
|
gitData: ['factory', function() {
|
|
return {
|
|
version: versionInfo.currentVersion,
|
|
versions: versionInfo.previousVersions,
|
|
info: versionInfo.gitRepoInfo
|
|
};
|
|
}]
|
|
},
|
|
process: function(extraData, gitData) {
|
|
extraData.git = gitData;
|
|
}
|
|
}; |