diff options
Diffstat (limited to 'docs/config/processors/git-data.js')
| -rw-r--r-- | docs/config/processors/git-data.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/config/processors/git-data.js b/docs/config/processors/git-data.js new file mode 100644 index 00000000..229864bb --- /dev/null +++ b/docs/config/processors/git-data.js @@ -0,0 +1,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; + } +};
\ No newline at end of file |
