mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[folder structure] plugins/.data -> data
This commit is contained in:
parent
28f30f8b73
commit
a30cae3316
7 changed files with 10 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -20,6 +20,7 @@ target
|
|||
.htpasswd
|
||||
.eslintcache
|
||||
plugins
|
||||
data
|
||||
disabledPlugins
|
||||
webpackstats.json
|
||||
config/kibana.dev.yml
|
||||
|
|
|
@ -10,7 +10,7 @@ const CONFIG_PATHS = [
|
|||
|
||||
const DATA_PATHS = [
|
||||
process.env.DATA_PATH,
|
||||
fromRoot('plugins/.data'),
|
||||
fromRoot('data'),
|
||||
'/var/lib/kibana'
|
||||
].filter(Boolean);
|
||||
|
||||
|
|
5
tasks/build/data.js
Normal file
5
tasks/build/data.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
export default function (grunt) {
|
||||
grunt.registerTask('_build:data', function () {
|
||||
grunt.file.mkdir('build/kibana/data');
|
||||
});
|
||||
};
|
|
@ -10,6 +10,7 @@ module.exports = function (grunt) {
|
|||
'babel:build',
|
||||
'_build:babelOptions',
|
||||
'_build:plugins',
|
||||
'_build:data',
|
||||
'_build:packageJson',
|
||||
'_build:readme',
|
||||
'_build:babelCache',
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
module.exports = function (grunt) {
|
||||
grunt.registerTask('_build:plugins', function () {
|
||||
grunt.file.mkdir('build/kibana/plugins');
|
||||
grunt.file.mkdir('build/kibana/plugins/.data');
|
||||
});
|
||||
};
|
||||
|
|
|
@ -45,7 +45,7 @@ export default (grunt) => {
|
|||
//config folder is moved to path.conf, exclude {path.home}/config
|
||||
//uses relative path to --prefix, strip the leading /
|
||||
'--exclude', `${packages.path.home.slice(1)}/config`,
|
||||
'--exclude', `${packages.path.home.slice(1)}/plugins/.data`
|
||||
'--exclude', `${packages.path.home.slice(1)}/data`
|
||||
];
|
||||
const debOptions = [
|
||||
'-t', 'deb',
|
||||
|
@ -60,7 +60,7 @@ export default (grunt) => {
|
|||
const args = [
|
||||
`${buildDir}/=${packages.path.home}/`,
|
||||
`${buildDir}/config/=${packages.path.conf}/`,
|
||||
`${buildDir}/plugins/.data/=${packages.path.data}/`,
|
||||
`${buildDir}/data/=${packages.path.data}/`,
|
||||
`${servicesByName.sysv.outputDir}/etc/=/etc/`,
|
||||
`${servicesByName.systemd.outputDir}/lib/=/lib/`
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue