Added API generation and Yaml testing for 1.x and 1.0 branches of elasticsearch.

This commit is contained in:
Spencer Alger
2014-02-05 08:18:19 -07:00
parent 5ff4b6f855
commit 6c5838fbfa
31 changed files with 20144 additions and 2035 deletions

13
grunt/utils.js Normal file
View 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
};