Files
elasticsearch-js/grunt/config/run.js
Dominykas Blyžė f1de944809 Upgrade to lodash v4 (#660)
* npm install lodash-2

Someone handily published a lodash-2 v4.17.4 - it is exactly the same as lodash v4.17.4, so it is safe to use during the migration.

* use lodash-2 in tests

* update tests to split utils vs lodash

* remove Utils.nextTick usage

Utils.nextTick with a single argument is the same as process.nextTick

* lowercase utils

Because it seems that this is the coding style in this repo

* upgrade lodash in grunt/*

* keep lodash-2 as a dev dep for now

* use lodash-2 in scripts

* use snakeCase from utils

It was a mistake in my previous commit to not update this usage

* fix naming gruntUtils vs utils

As all three - gruntUtils, utils and lodash (_) are getting passed into templates, it makes sense to keep the naming consistent

* fix naming gruntUtils vs utils

As all three - gruntUtils, utils and lodash (_) are getting passed into templates, it makes sense to keep the naming consistent

* split utils vs lodash in scripts/generate

Also use lodash-2 where it is easy to do so

* use utils.get until lodash upgrade

* remove lodash.isempty; lodash-2 now used in prod (in src/lib/apis/ code)

* unbundle lodash from utils

* upgrade to lodash 4

* remove lodash.get and lodash.trimEnd

* clean out unused code

* clean out unused code

* fix a breaking change listed under "notable changes" rather than under "breaking changes"...
2018-05-14 11:37:23 -07:00

62 lines
1.3 KiB
JavaScript

var gruntUtils = require('../utils');
var config = {
generate: {
exec: 'node ./scripts/generate/index.js',
options: {
passArgs: [
'verbose'
]
}
},
browser_test_server: {
exec: 'node ./test/utils/server',
options: {
wait: false,
quiet: false,
ready: /listening/
}
},
clone_bower_repo: {
exec: [
'test -d src/bower_es_js',
'git clone git@github.com:elastic/bower-elasticsearch-js.git <%= bowerSubmodule %>'
].join(' || '),
options: {
quiet: true
}
},
checkout_bower_repo_master: {
exec: 'git checkout master',
options: {
cwd: '<%= bowerSubmodule %>',
quiet: true
}
},
checkout_bower_repo_prerelease: {
exec: 'git checkout prerelease',
options: {
cwd: '<%= bowerSubmodule %>',
quiet: true
}
},
push_prerelease_branch: {
exec: 'git add -A && git commit -m "prerelease build" && git push origin prerelease',
options: {
cwd: '<%= bowerSubmodule %>',
quite: true
}
},
release_bower_tag: {
exec: 'node ./scripts/release/bower'
}
};
gruntUtils.branches.forEach(function (branch) {
config['generate_' + branch] = {
exec: 'node ./scripts/generate/index.js --branch=' + branch
};
});
module.exports = config;