Added API generation and Yaml testing for 1.x and 1.0 branches of elasticsearch.
This commit is contained in:
13
grunt/utils.js
Normal file
13
grunt/utils.js
Normal file
@ -0,0 +1,13 @@
|
||||
var _ = require('../src/lib/utils');
|
||||
|
||||
var root = require('find-root')(__dirname);
|
||||
var pkg = require(root + '/package.json');
|
||||
var branches = pkg.config.supported_es_branches;
|
||||
branches._default = pkg.config.default_api_branch;
|
||||
|
||||
module.exports = {
|
||||
branchSuffix: function (branch) {
|
||||
return branch === branches._default ? '' : '_' + _.snakeCase(branch);
|
||||
},
|
||||
branches: branches
|
||||
};
|
||||
Reference in New Issue
Block a user