2019-10-11 19:15:41 +02:00
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
2021-02-04 03:12:39 +01:00
|
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
|
|
* 2.0.
|
2019-10-11 19:15:41 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
const path = require('path');
|
2020-01-15 21:30:59 +01:00
|
|
|
const { LIBRARY_NAME, SHAREABLE_RUNTIME_NAME } = require('./constants_static');
|
2019-10-23 02:28:08 +02:00
|
|
|
|
2020-05-06 02:52:56 +02:00
|
|
|
const KIBANA_ROOT_PATH = '../../../..';
|
|
|
|
const CANVAS_ROOT_PATH = 'x-pack/plugins/canvas';
|
2019-10-23 02:28:08 +02:00
|
|
|
const SHAREABLE_RUNTIME_PATH = 'shareable_runtime';
|
|
|
|
const SHAREABLE_RUNTIME_OUTPUT_PATH = 'shareable_runtime/build';
|
|
|
|
const SHAREABLE_RUNTIME_FILE_PATH = 'shareable_runtime/build/kbn_canvas.js';
|
|
|
|
const STATS_OUTPUT_PATH = 'shareable_runtime/build/webpack_stats.json';
|
|
|
|
|
|
|
|
const KIBANA_ROOT = path.resolve(__dirname, KIBANA_ROOT_PATH);
|
|
|
|
const CANVAS_ROOT = path.resolve(KIBANA_ROOT, CANVAS_ROOT_PATH);
|
|
|
|
const SHAREABLE_RUNTIME_SRC = path.resolve(CANVAS_ROOT, SHAREABLE_RUNTIME_PATH);
|
|
|
|
const SHAREABLE_RUNTIME_OUTPUT = path.resolve(CANVAS_ROOT, SHAREABLE_RUNTIME_OUTPUT_PATH);
|
|
|
|
const SHAREABLE_RUNTIME_FILE = path.resolve(CANVAS_ROOT, SHAREABLE_RUNTIME_FILE_PATH);
|
|
|
|
const STATS_OUTPUT = path.resolve(CANVAS_ROOT, STATS_OUTPUT_PATH);
|
2019-10-11 19:15:41 +02:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
KIBANA_ROOT,
|
|
|
|
LIBRARY_NAME,
|
|
|
|
SHAREABLE_RUNTIME_FILE,
|
|
|
|
SHAREABLE_RUNTIME_NAME,
|
|
|
|
SHAREABLE_RUNTIME_OUTPUT,
|
|
|
|
SHAREABLE_RUNTIME_SRC,
|
|
|
|
STATS_OUTPUT,
|
|
|
|
};
|