mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Add support for passing in node options via environment variable (elastic/kibana-plugin-helpers#56)
* Add support for passing in node options via environment variable * Split node options * semicolon Original commit: elastic/kibana-plugin-helpers@3fc4ec0e87
This commit is contained in:
parent
b7ded472c1
commit
82f3293eff
2 changed files with 5 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
|||
"lint": "eslint bin/ help/ tasks/"
|
||||
},
|
||||
"dependencies": {
|
||||
"argv-split": "^2.0.1",
|
||||
"commander": "^2.9.0",
|
||||
"del": "^2.2.2",
|
||||
"gulp-rename": "1.2.2",
|
||||
|
|
|
@ -1,12 +1,15 @@
|
|||
const execFileSync = require('child_process').execFileSync;
|
||||
const { join } = require('path');
|
||||
const split = require('argv-split');
|
||||
|
||||
module.exports = function (plugin, run, options) {
|
||||
options = options || {};
|
||||
|
||||
const cmd = 'node';
|
||||
const script = join('scripts', 'kibana.js');
|
||||
let args = [script, '--dev', '--plugin-path', plugin.root];
|
||||
const nodeOptions = split(process.env.NODE_OPTIONS || '');
|
||||
|
||||
let args = nodeOptions.concat([script, '--dev', '--plugin-path', plugin.root]);
|
||||
|
||||
if (Array.isArray(plugin.includePlugins)) {
|
||||
plugin.includePlugins.forEach((path) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue