mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 03:01:21 -04:00
[folder structure] installedPlugins -> plugins
This commit is contained in:
parent
5588983386
commit
28f30f8b73
17 changed files with 24 additions and 24 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -19,7 +19,7 @@ target
|
||||||
/esvm
|
/esvm
|
||||||
.htpasswd
|
.htpasswd
|
||||||
.eslintcache
|
.eslintcache
|
||||||
installedPlugins
|
plugins
|
||||||
disabledPlugins
|
disabledPlugins
|
||||||
webpackstats.json
|
webpackstats.json
|
||||||
config/kibana.dev.yml
|
config/kibana.dev.yml
|
||||||
|
|
|
@ -142,7 +142,7 @@ for development and fixing individual tests.
|
||||||
This should work super if you're using the [Kibana plugin generator](https://github.com/elastic/generator-kibana-plugin). If you're not using the generator, well, you're on your own. We suggest you look at how the generator works.
|
This should work super if you're using the [Kibana plugin generator](https://github.com/elastic/generator-kibana-plugin). If you're not using the generator, well, you're on your own. We suggest you look at how the generator works.
|
||||||
|
|
||||||
`npm run test:dev -- --kbnServer.testsBundle.pluginId=some_special_plugin --kbnServer.plugin-path=../some_special_plugin`
|
`npm run test:dev -- --kbnServer.testsBundle.pluginId=some_special_plugin --kbnServer.plugin-path=../some_special_plugin`
|
||||||
Run the tests for just your particular plugin. Assuming you plugin lives outside of the `installedPlugins directory`, which it should.
|
Run the tests for just your particular plugin. Assuming you plugin lives outside of the `plugins directory`, which it should.
|
||||||
|
|
||||||
#### Running browser automation tests:
|
#### Running browser automation tests:
|
||||||
|
|
||||||
|
|
0
plugins/.empty
Normal file
0
plugins/.empty
Normal file
|
@ -92,7 +92,7 @@ module.exports = function (program) {
|
||||||
'times to specify multiple directories',
|
'times to specify multiple directories',
|
||||||
pluginDirCollector,
|
pluginDirCollector,
|
||||||
[
|
[
|
||||||
fromRoot('installedPlugins'),
|
fromRoot('plugins'),
|
||||||
fromRoot('src/plugins')
|
fromRoot('src/plugins')
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
|
@ -70,7 +70,7 @@ describe('kibana cli', function () {
|
||||||
let options = {};
|
let options = {};
|
||||||
const kbnPackage = { version: 1234 };
|
const kbnPackage = { version: 1234 };
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
options = { pluginDir: fromRoot('installedPlugins') };
|
options = { pluginDir: fromRoot('plugins') };
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('timeout option', function () {
|
describe('timeout option', function () {
|
||||||
|
@ -143,10 +143,10 @@ describe('kibana cli', function () {
|
||||||
|
|
||||||
describe('pluginDir option', function () {
|
describe('pluginDir option', function () {
|
||||||
|
|
||||||
it('should default to installedPlugins', function () {
|
it('should default to plugins', function () {
|
||||||
const settings = parse(command, options, kbnPackage);
|
const settings = parse(command, options, kbnPackage);
|
||||||
|
|
||||||
expect(settings.pluginDir).to.be(fromRoot('installedPlugins'));
|
expect(settings.pluginDir).to.be(fromRoot('plugins'));
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should set settings.config property', function () {
|
it('should set settings.config property', function () {
|
||||||
|
|
|
@ -39,7 +39,7 @@ export default function pluginInstall(program) {
|
||||||
.option(
|
.option(
|
||||||
'-d, --plugin-dir <path>',
|
'-d, --plugin-dir <path>',
|
||||||
'path to the directory where plugins are stored',
|
'path to the directory where plugins are stored',
|
||||||
fromRoot('installedPlugins')
|
fromRoot('plugins')
|
||||||
)
|
)
|
||||||
.description('install a plugin',
|
.description('install a plugin',
|
||||||
`Common examples:
|
`Common examples:
|
||||||
|
|
|
@ -15,15 +15,15 @@ describe('kibana cli', function () {
|
||||||
let command;
|
let command;
|
||||||
const options = {};
|
const options = {};
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
command = { pluginDir: fromRoot('installedPlugins') };
|
command = { pluginDir: fromRoot('plugins') };
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('pluginDir option', function () {
|
describe('pluginDir option', function () {
|
||||||
|
|
||||||
it('should default to installedPlugins', function () {
|
it('should default to plugins', function () {
|
||||||
const settings = parse(command, options);
|
const settings = parse(command, options);
|
||||||
|
|
||||||
expect(settings.pluginDir).to.be(fromRoot('installedPlugins'));
|
expect(settings.pluginDir).to.be(fromRoot('plugins'));
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should set settings.config property', function () {
|
it('should set settings.config property', function () {
|
||||||
|
|
|
@ -23,7 +23,7 @@ export default function pluginList(program) {
|
||||||
.option(
|
.option(
|
||||||
'-d, --plugin-dir <path>',
|
'-d, --plugin-dir <path>',
|
||||||
'path to the directory where plugins are stored',
|
'path to the directory where plugins are stored',
|
||||||
fromRoot('installedPlugins')
|
fromRoot('plugins')
|
||||||
)
|
)
|
||||||
.description('list installed plugins')
|
.description('list installed plugins')
|
||||||
.action(processCommand);
|
.action(processCommand);
|
||||||
|
|
|
@ -16,7 +16,7 @@ describe('kibana cli', function () {
|
||||||
let options = {};
|
let options = {};
|
||||||
const kbnPackage = { version: 1234 };
|
const kbnPackage = { version: 1234 };
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
options = { pluginDir: fromRoot('installedPlugins') };
|
options = { pluginDir: fromRoot('plugins') };
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('quiet option', function () {
|
describe('quiet option', function () {
|
||||||
|
@ -72,10 +72,10 @@ describe('kibana cli', function () {
|
||||||
|
|
||||||
describe('pluginDir option', function () {
|
describe('pluginDir option', function () {
|
||||||
|
|
||||||
it('should default to installedPlugins', function () {
|
it('should default to plugins', function () {
|
||||||
const settings = parse(command, options, kbnPackage);
|
const settings = parse(command, options, kbnPackage);
|
||||||
|
|
||||||
expect(settings.pluginDir).to.be(fromRoot('installedPlugins'));
|
expect(settings.pluginDir).to.be(fromRoot('plugins'));
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should set settings.config property', function () {
|
it('should set settings.config property', function () {
|
||||||
|
|
|
@ -31,7 +31,7 @@ export default function pluginRemove(program) {
|
||||||
.option(
|
.option(
|
||||||
'-d, --plugin-dir <path>',
|
'-d, --plugin-dir <path>',
|
||||||
'path to the directory where plugins are stored',
|
'path to the directory where plugins are stored',
|
||||||
fromRoot('installedPlugins')
|
fromRoot('plugins')
|
||||||
)
|
)
|
||||||
.description('remove a plugin',
|
.description('remove a plugin',
|
||||||
`common examples:
|
`common examples:
|
||||||
|
|
|
@ -10,7 +10,7 @@ const CONFIG_PATHS = [
|
||||||
|
|
||||||
const DATA_PATHS = [
|
const DATA_PATHS = [
|
||||||
process.env.DATA_PATH,
|
process.env.DATA_PATH,
|
||||||
fromRoot('installedPlugins/.data'),
|
fromRoot('plugins/.data'),
|
||||||
'/var/lib/kibana'
|
'/var/lib/kibana'
|
||||||
].filter(Boolean);
|
].filter(Boolean);
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ module.exports = function (grunt) {
|
||||||
'copy:devSource',
|
'copy:devSource',
|
||||||
'babel:build',
|
'babel:build',
|
||||||
'_build:babelOptions',
|
'_build:babelOptions',
|
||||||
'_build:installedPlugins',
|
'_build:plugins',
|
||||||
'_build:packageJson',
|
'_build:packageJson',
|
||||||
'_build:readme',
|
'_build:readme',
|
||||||
'_build:babelCache',
|
'_build:babelCache',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
module.exports = function (grunt) {
|
module.exports = function (grunt) {
|
||||||
grunt.registerTask('_build:installedPlugins', function () {
|
grunt.registerTask('_build:plugins', function () {
|
||||||
grunt.file.mkdir('build/kibana/installedPlugins');
|
grunt.file.mkdir('build/kibana/plugins');
|
||||||
grunt.file.mkdir('build/kibana/installedPlugins/.data');
|
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
|
//config folder is moved to path.conf, exclude {path.home}/config
|
||||||
//uses relative path to --prefix, strip the leading /
|
//uses relative path to --prefix, strip the leading /
|
||||||
'--exclude', `${packages.path.home.slice(1)}/config`,
|
'--exclude', `${packages.path.home.slice(1)}/config`,
|
||||||
'--exclude', `${packages.path.home.slice(1)}/installedPlugins/.data`
|
'--exclude', `${packages.path.home.slice(1)}/plugins/.data`
|
||||||
];
|
];
|
||||||
const debOptions = [
|
const debOptions = [
|
||||||
'-t', 'deb',
|
'-t', 'deb',
|
||||||
|
@ -60,7 +60,7 @@ export default (grunt) => {
|
||||||
const args = [
|
const args = [
|
||||||
`${buildDir}/=${packages.path.home}/`,
|
`${buildDir}/=${packages.path.home}/`,
|
||||||
`${buildDir}/config/=${packages.path.conf}/`,
|
`${buildDir}/config/=${packages.path.conf}/`,
|
||||||
`${buildDir}/installedPlugins/.data/=${packages.path.data}/`,
|
`${buildDir}/plugins/.data/=${packages.path.data}/`,
|
||||||
`${servicesByName.sysv.outputDir}/etc/=/etc/`,
|
`${servicesByName.sysv.outputDir}/etc/=/etc/`,
|
||||||
`${servicesByName.systemd.outputDir}/lib/=/lib/`
|
`${servicesByName.systemd.outputDir}/lib/=/lib/`
|
||||||
];
|
];
|
||||||
|
|
|
@ -16,7 +16,7 @@ export default (grunt) => {
|
||||||
const FOLDER_HOME = '/usr/share/kibana';
|
const FOLDER_HOME = '/usr/share/kibana';
|
||||||
const FOLDER_DATA = '/var/lib/kibana';
|
const FOLDER_DATA = '/var/lib/kibana';
|
||||||
const FOLDER_LOGS = '/var/log/kibana';
|
const FOLDER_LOGS = '/var/log/kibana';
|
||||||
const FOLDER_PLUGINS = `${FOLDER_HOME}/installedPlugins`;
|
const FOLDER_PLUGINS = `${FOLDER_HOME}/plugins`;
|
||||||
|
|
||||||
const FILE_KIBANA_CONF = `${FOLDER_CONFIG}/kibana.yml`;
|
const FILE_KIBANA_CONF = `${FOLDER_CONFIG}/kibana.yml`;
|
||||||
const FILE_KIBANA_BINARY = `${FOLDER_HOME}/bin/kibana`;
|
const FILE_KIBANA_BINARY = `${FOLDER_HOME}/bin/kibana`;
|
||||||
|
|
|
@ -10,7 +10,7 @@ export default grunt => {
|
||||||
grunt.registerTask('rejectRejFiles', 'Reject any git-apply .rej files', () => {
|
grunt.registerTask('rejectRejFiles', 'Reject any git-apply .rej files', () => {
|
||||||
const ignoredTopLevelDirs = [
|
const ignoredTopLevelDirs = [
|
||||||
'esvm',
|
'esvm',
|
||||||
'installedPlugins',
|
'plugins',
|
||||||
'node_modules',
|
'node_modules',
|
||||||
'optimize'
|
'optimize'
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue