mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[optimize] remove optimize.tests config, rely on optimize.bundleFilter instead
This commit is contained in:
parent
ce19ecc2a2
commit
e39a47e9bf
3 changed files with 3 additions and 10 deletions
|
@ -1,6 +1,4 @@
|
||||||
module.exports = (kibana) => {
|
module.exports = (kibana) => {
|
||||||
if (!kibana.config.get('optimize.tests')) return;
|
|
||||||
|
|
||||||
let { union } = require('lodash');
|
let { union } = require('lodash');
|
||||||
|
|
||||||
let utils = require('requirefrom')('src/utils');
|
let utils = require('requirefrom')('src/utils');
|
||||||
|
|
|
@ -79,11 +79,7 @@ module.exports = Joi.object({
|
||||||
|
|
||||||
optimize: Joi.object({
|
optimize: Joi.object({
|
||||||
enabled: Joi.boolean().default(true),
|
enabled: Joi.boolean().default(true),
|
||||||
bundleFilter: Joi.string().when('tests', {
|
bundleFilter: Joi.string().default('!tests'),
|
||||||
is: true,
|
|
||||||
then: Joi.default('tests'),
|
|
||||||
otherwise: Joi.default('*')
|
|
||||||
}),
|
|
||||||
bundleDir: Joi.string().default(fromRoot('optimize/bundles')),
|
bundleDir: Joi.string().default(fromRoot('optimize/bundles')),
|
||||||
viewCaching: Joi.boolean().default(Joi.ref('$prod')),
|
viewCaching: Joi.boolean().default(Joi.ref('$prod')),
|
||||||
lazy: Joi.boolean().when('$dev', {
|
lazy: Joi.boolean().when('$dev', {
|
||||||
|
@ -109,8 +105,7 @@ module.exports = Joi.object({
|
||||||
Joi.boolean()
|
Joi.boolean()
|
||||||
)
|
)
|
||||||
.default(Joi.ref('$dev')),
|
.default(Joi.ref('$dev')),
|
||||||
profile: Joi.boolean().default(false),
|
profile: Joi.boolean().default(false)
|
||||||
tests: Joi.boolean().default(false),
|
|
||||||
}).default()
|
}).default()
|
||||||
|
|
||||||
}).default();
|
}).default();
|
||||||
|
|
|
@ -14,7 +14,7 @@ module.exports = function (grunt) {
|
||||||
args: [
|
args: [
|
||||||
'--env.name=development',
|
'--env.name=development',
|
||||||
'--logging.json=false',
|
'--logging.json=false',
|
||||||
'--optimize.tests=true',
|
'--optimize.bundleFilter=tests',
|
||||||
'--optimize.lazy=false'
|
'--optimize.lazy=false'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue