mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
parent
e544e5cf1a
commit
089688baf1
3 changed files with 0 additions and 48 deletions
|
@ -88,6 +88,4 @@ program
|
|||
}))
|
||||
);
|
||||
|
||||
program.command('postinstall').action(createCommanderAction('postinstall'));
|
||||
|
||||
program.parse(process.argv);
|
||||
|
|
|
@ -22,7 +22,6 @@ const startTask = require('../tasks/start');
|
|||
const testAllTask = require('../tasks/test/all');
|
||||
const testKarmaTask = require('../tasks/test/karma');
|
||||
const testMochaTask = require('../tasks/test/mocha');
|
||||
const postinstallTask = require('../tasks/postinstall');
|
||||
|
||||
module.exports = {
|
||||
build: buildTask,
|
||||
|
@ -30,5 +29,4 @@ module.exports = {
|
|||
testAll: testAllTask,
|
||||
testKarma: testKarmaTask,
|
||||
testMocha: testMochaTask,
|
||||
postinstall: postinstallTask,
|
||||
};
|
||||
|
|
|
@ -1,44 +0,0 @@
|
|||
/*
|
||||
* Licensed to Elasticsearch B.V. under one or more contributor
|
||||
* license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright
|
||||
* ownership. Elasticsearch B.V. licenses this file to you under
|
||||
* the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
const resolve = require('path').resolve;
|
||||
const statSync = require('fs').statSync;
|
||||
|
||||
module.exports = function(plugin) {
|
||||
if (
|
||||
fileExists(resolve(plugin.root, '../kibana/package.json')) &&
|
||||
!fileExists(resolve(plugin.root, '../../kibana/package.json'))
|
||||
) {
|
||||
process.stdout.write(
|
||||
'\nWARNING: Kibana now requires that plugins must be located in ' +
|
||||
'`../kibana-extra/{pluginName}` relative to the Kibana folder ' +
|
||||
'during development. We found a Kibana in `../kibana`, but not in ' +
|
||||
'`../../kibana`.\n'
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
function fileExists(path) {
|
||||
try {
|
||||
const stat = statSync(path);
|
||||
return stat.isFile();
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue