Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Use scripts/kibana instead of bin if available (elastic#53)
Browse files Browse the repository at this point in the history
* Use scripts/kibana instead of bin if available

* semicolons

* Don't fallback to legacy bin/kibana start method

* chore: add 8.x version to compat chart
  • Loading branch information
jbudz authored and spalger committed Feb 8, 2018
1 parent 55af677 commit 9b4d9d2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/kbn-plugin-helpers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ $ plugin-helpers help

Plugin Helpers | Kibana
-------------- | ------
7.x | 4.6+ (node 6+ only)
6.x | 4.6+
8.x | 7.0+
7.x | 4.6.x to 6.x (node 6+ only)
6.x | 4.6.x to 6.x
5.x | 4.x

## Configuration
Expand Down
6 changes: 4 additions & 2 deletions packages/kbn-plugin-helpers/tasks/start/start_action.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
const execFileSync = require('child_process').execFileSync;
const { join } = require('path');

module.exports = function (plugin, run, options) {
options = options || {};

const cmd = (process.platform === 'win32') ? 'bin\\kibana.bat' : 'bin/kibana';
let args = ['--dev', '--plugin-path', plugin.root];
const cmd = 'node';
const script = join('scripts', 'kibana.js');
let args = [script, '--dev', '--plugin-path', plugin.root];

if (Array.isArray(plugin.includePlugins)) {
plugin.includePlugins.forEach((path) => {
Expand Down

0 comments on commit 9b4d9d2

Please sign in to comment.