mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
7 lines
324 B
JavaScript
7 lines
324 B
JavaScript
module.exports = function (grunt) {
|
|
var exec = require('child_process').execSync;
|
|
grunt.registerTask('_build:getProps', function () {
|
|
grunt.config.set('buildSha', String(exec('git rev-parse HEAD')).trim());
|
|
grunt.config.set('buildNum', parseFloat(String(exec('git log --format="%h" | wc -l')).trim()));
|
|
});
|
|
};
|