blob: 229864bb920f42210e06d8085f431f486f68eb4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
var gruntUtils = require('../../../lib/grunt/utils');
module.exports = {
name: 'git-data',
runBefore: ['loading-files'],
description: 'This processor adds information from the local git repository to the extraData injectable',
init: function(config, injectables) {
injectables.value('gitData', {
version: gruntUtils.getVersion(),
versions: gruntUtils.getPreviousVersions(),
info: gruntUtils.getGitRepoInfo()
});
},
process: function(extraData, gitData) {
extraData.git = gitData;
}
};
|