mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
break out parts of @kbn/dev-utils (#130509)
* break out parts of @kbn/dev-utils * autofix imports and kbn/pm dist * update readme for @kbn/stdio-dev-helpers * finish renames
This commit is contained in:
parent
06740ff218
commit
2a78f350e1
329 changed files with 2472 additions and 1038 deletions
14
package.json
14
package.json
|
@ -481,6 +481,9 @@
|
|||
"@kbn/babel-plugin-synthetic-packages": "link:bazel-bin/packages/kbn-babel-plugin-synthetic-packages",
|
||||
"@kbn/babel-preset": "link:bazel-bin/packages/kbn-babel-preset",
|
||||
"@kbn/bazel-packages": "link:bazel-bin/packages/kbn-bazel-packages",
|
||||
"@kbn/ci-stats-client": "link:bazel-bin/packages/kbn-ci-stats-client",
|
||||
"@kbn/ci-stats-core": "link:bazel-bin/packages/kbn-ci-stats-core",
|
||||
"@kbn/ci-stats-reporter": "link:bazel-bin/packages/kbn-ci-stats-reporter",
|
||||
"@kbn/cli-dev-mode": "link:bazel-bin/packages/kbn-cli-dev-mode",
|
||||
"@kbn/dev-utils": "link:bazel-bin/packages/kbn-dev-utils",
|
||||
"@kbn/docs-utils": "link:bazel-bin/packages/kbn-docs-utils",
|
||||
|
@ -491,17 +494,21 @@
|
|||
"@kbn/find-used-node-modules": "link:bazel-bin/packages/kbn-find-used-node-modules",
|
||||
"@kbn/generate": "link:bazel-bin/packages/kbn-generate",
|
||||
"@kbn/import-resolver": "link:bazel-bin/packages/kbn-import-resolver",
|
||||
"@kbn/jest-serializers": "link:bazel-bin/packages/kbn-jest-serializers",
|
||||
"@kbn/optimizer": "link:bazel-bin/packages/kbn-optimizer",
|
||||
"@kbn/plugin-generator": "link:bazel-bin/packages/kbn-plugin-generator",
|
||||
"@kbn/plugin-helpers": "link:bazel-bin/packages/kbn-plugin-helpers",
|
||||
"@kbn/pm": "link:packages/kbn-pm",
|
||||
"@kbn/sort-package-json": "link:bazel-bin/packages/kbn-sort-package-json",
|
||||
"@kbn/spec-to-console": "link:bazel-bin/packages/kbn-spec-to-console",
|
||||
"@kbn/stdio-dev-helpers": "link:bazel-bin/packages/kbn-stdio-dev-helpers",
|
||||
"@kbn/storybook": "link:bazel-bin/packages/kbn-storybook",
|
||||
"@kbn/synthetic-package-map": "link:bazel-bin/packages/kbn-synthetic-package-map",
|
||||
"@kbn/telemetry-tools": "link:bazel-bin/packages/kbn-telemetry-tools",
|
||||
"@kbn/test": "link:bazel-bin/packages/kbn-test",
|
||||
"@kbn/test-jest-helpers": "link:bazel-bin/packages/kbn-test-jest-helpers",
|
||||
"@kbn/test-subj-selector": "link:bazel-bin/packages/kbn-test-subj-selector",
|
||||
"@kbn/tooling-log": "link:bazel-bin/packages/kbn-tooling-log",
|
||||
"@kbn/type-summarizer": "link:bazel-bin/packages/kbn-type-summarizer",
|
||||
"@loaders.gl/polyfills": "^2.3.5",
|
||||
"@mapbox/vector-tile": "1.3.1",
|
||||
|
@ -600,6 +607,9 @@
|
|||
"@types/kbn__apm-utils": "link:bazel-bin/packages/kbn-apm-utils/npm_module_types",
|
||||
"@types/kbn__axe-config": "link:bazel-bin/packages/kbn-axe-config/npm_module_types",
|
||||
"@types/kbn__bazel-packages": "link:bazel-bin/packages/kbn-bazel-packages/npm_module_types",
|
||||
"@types/kbn__ci-stats-client": "link:bazel-bin/packages/kbn-ci-stats-client/npm_module_types",
|
||||
"@types/kbn__ci-stats-core": "link:bazel-bin/packages/kbn-ci-stats-core/npm_module_types",
|
||||
"@types/kbn__ci-stats-reporter": "link:bazel-bin/packages/kbn-ci-stats-reporter/npm_module_types",
|
||||
"@types/kbn__cli-dev-mode": "link:bazel-bin/packages/kbn-cli-dev-mode/npm_module_types",
|
||||
"@types/kbn__coloring": "link:bazel-bin/packages/kbn-coloring/npm_module_types",
|
||||
"@types/kbn__config": "link:bazel-bin/packages/kbn-config/npm_module_types",
|
||||
|
@ -620,6 +630,7 @@
|
|||
"@types/kbn__import-resolver": "link:bazel-bin/packages/kbn-import-resolver/npm_module_types",
|
||||
"@types/kbn__interpreter": "link:bazel-bin/packages/kbn-interpreter/npm_module_types",
|
||||
"@types/kbn__io-ts-utils": "link:bazel-bin/packages/kbn-io-ts-utils/npm_module_types",
|
||||
"@types/kbn__jest-serializers": "link:bazel-bin/packages/kbn-jest-serializers/npm_module_types",
|
||||
"@types/kbn__logging": "link:bazel-bin/packages/kbn-logging/npm_module_types",
|
||||
"@types/kbn__logging-mocks": "link:bazel-bin/packages/kbn-logging-mocks/npm_module_types",
|
||||
"@types/kbn__mapbox-gl": "link:bazel-bin/packages/kbn-mapbox-gl/npm_module_types",
|
||||
|
@ -651,11 +662,14 @@
|
|||
"@types/kbn__shared-ux-services": "link:bazel-bin/packages/kbn-shared-ux-services/npm_module_types",
|
||||
"@types/kbn__shared-ux-storybook": "link:bazel-bin/packages/kbn-shared-ux-storybook/npm_module_types",
|
||||
"@types/kbn__shared-ux-utility": "link:bazel-bin/packages/kbn-shared-ux-utility/npm_module_types",
|
||||
"@types/kbn__sort-package-json": "link:bazel-bin/packages/kbn-sort-package-json/npm_module_types",
|
||||
"@types/kbn__std": "link:bazel-bin/packages/kbn-std/npm_module_types",
|
||||
"@types/kbn__stdio-dev-helpers": "link:bazel-bin/packages/kbn-stdio-dev-helpers/npm_module_types",
|
||||
"@types/kbn__storybook": "link:bazel-bin/packages/kbn-storybook/npm_module_types",
|
||||
"@types/kbn__telemetry-tools": "link:bazel-bin/packages/kbn-telemetry-tools/npm_module_types",
|
||||
"@types/kbn__test": "link:bazel-bin/packages/kbn-test/npm_module_types",
|
||||
"@types/kbn__test-jest-helpers": "link:bazel-bin/packages/kbn-test-jest-helpers/npm_module_types",
|
||||
"@types/kbn__tooling-log": "link:bazel-bin/packages/kbn-tooling-log/npm_module_types",
|
||||
"@types/kbn__typed-react-router-config": "link:bazel-bin/packages/kbn-typed-react-router-config/npm_module_types",
|
||||
"@types/kbn__ui-shared-deps-npm": "link:bazel-bin/packages/kbn-ui-shared-deps-npm/npm_module_types",
|
||||
"@types/kbn__ui-shared-deps-src": "link:bazel-bin/packages/kbn-ui-shared-deps-src/npm_module_types",
|
||||
|
|
|
@ -24,6 +24,9 @@ filegroup(
|
|||
"//packages/kbn-babel-plugin-synthetic-packages:build",
|
||||
"//packages/kbn-babel-preset:build",
|
||||
"//packages/kbn-bazel-packages:build",
|
||||
"//packages/kbn-ci-stats-client:build",
|
||||
"//packages/kbn-ci-stats-core:build",
|
||||
"//packages/kbn-ci-stats-reporter:build",
|
||||
"//packages/kbn-cli-dev-mode:build",
|
||||
"//packages/kbn-coloring:build",
|
||||
"//packages/kbn-config-schema:build",
|
||||
|
@ -48,6 +51,7 @@ filegroup(
|
|||
"//packages/kbn-import-resolver:build",
|
||||
"//packages/kbn-interpreter:build",
|
||||
"//packages/kbn-io-ts-utils:build",
|
||||
"//packages/kbn-jest-serializers:build",
|
||||
"//packages/kbn-logging-mocks:build",
|
||||
"//packages/kbn-logging:build",
|
||||
"//packages/kbn-mapbox-gl:build",
|
||||
|
@ -78,8 +82,10 @@ filegroup(
|
|||
"//packages/kbn-shared-ux-services:build",
|
||||
"//packages/kbn-shared-ux-storybook:build",
|
||||
"//packages/kbn-shared-ux-utility:build",
|
||||
"//packages/kbn-sort-package-json:build",
|
||||
"//packages/kbn-spec-to-console:build",
|
||||
"//packages/kbn-std:build",
|
||||
"//packages/kbn-stdio-dev-helpers:build",
|
||||
"//packages/kbn-storybook:build",
|
||||
"//packages/kbn-synthetic-package-map:build",
|
||||
"//packages/kbn-telemetry-tools:build",
|
||||
|
@ -88,6 +94,7 @@ filegroup(
|
|||
"//packages/kbn-test:build",
|
||||
"//packages/kbn-timelion-grammar:build",
|
||||
"//packages/kbn-tinymath:build",
|
||||
"//packages/kbn-tooling-log:build",
|
||||
"//packages/kbn-type-summarizer:build",
|
||||
"//packages/kbn-typed-react-router-config:build",
|
||||
"//packages/kbn-ui-framework:build",
|
||||
|
@ -114,6 +121,9 @@ filegroup(
|
|||
"//packages/kbn-apm-utils:build_types",
|
||||
"//packages/kbn-axe-config:build_types",
|
||||
"//packages/kbn-bazel-packages:build_types",
|
||||
"//packages/kbn-ci-stats-client:build_types",
|
||||
"//packages/kbn-ci-stats-core:build_types",
|
||||
"//packages/kbn-ci-stats-reporter:build_types",
|
||||
"//packages/kbn-cli-dev-mode:build_types",
|
||||
"//packages/kbn-coloring:build_types",
|
||||
"//packages/kbn-config-schema:build_types",
|
||||
|
@ -134,6 +144,7 @@ filegroup(
|
|||
"//packages/kbn-import-resolver:build_types",
|
||||
"//packages/kbn-interpreter:build_types",
|
||||
"//packages/kbn-io-ts-utils:build_types",
|
||||
"//packages/kbn-jest-serializers:build_types",
|
||||
"//packages/kbn-logging-mocks:build_types",
|
||||
"//packages/kbn-logging:build_types",
|
||||
"//packages/kbn-mapbox-gl:build_types",
|
||||
|
@ -164,11 +175,14 @@ filegroup(
|
|||
"//packages/kbn-shared-ux-services:build_types",
|
||||
"//packages/kbn-shared-ux-storybook:build_types",
|
||||
"//packages/kbn-shared-ux-utility:build_types",
|
||||
"//packages/kbn-sort-package-json:build_types",
|
||||
"//packages/kbn-std:build_types",
|
||||
"//packages/kbn-stdio-dev-helpers:build_types",
|
||||
"//packages/kbn-storybook:build_types",
|
||||
"//packages/kbn-telemetry-tools:build_types",
|
||||
"//packages/kbn-test-jest-helpers:build_types",
|
||||
"//packages/kbn-test:build_types",
|
||||
"//packages/kbn-tooling-log:build_types",
|
||||
"//packages/kbn-type-summarizer:build_types",
|
||||
"//packages/kbn-typed-react-router-config:build_types",
|
||||
"//packages/kbn-ui-shared-deps-npm:build_types",
|
||||
|
|
|
@ -105,6 +105,90 @@ module.exports = {
|
|||
],
|
||||
],
|
||||
|
||||
/**
|
||||
* ESLint rule to aid with breaking up packages:
|
||||
*
|
||||
* `fromPacakge` the package name which was broken up
|
||||
* `toPackage` the package where the removed exports were placed
|
||||
* `exportNames` the list of exports which used to be found in `fromPacakge` and are now found in `toPackage`
|
||||
*
|
||||
* TODO(@spalger): once packages have types we should be able to filter this rule based on the package type
|
||||
* of the file being linted so that we could re-route imports from `plugin-client` types to a different package
|
||||
* than `plugin-server` types.
|
||||
*/
|
||||
'@kbn/imports/exports_moved_packages': ['error', [
|
||||
{
|
||||
fromPackage: '@kbn/dev-utils',
|
||||
toPackage: '@kbn/tooling-log',
|
||||
exportNames: [
|
||||
'DEFAULT_LOG_LEVEL',
|
||||
'getLogLevelFlagsHelp',
|
||||
'LOG_LEVEL_FLAGS',
|
||||
'LogLevel',
|
||||
'Message',
|
||||
'ParsedLogLevel',
|
||||
'parseLogLevel',
|
||||
'pickLevelFromFlags',
|
||||
'ToolingLog',
|
||||
'ToolingLogCollectingWriter',
|
||||
'ToolingLogOptions',
|
||||
'ToolingLogTextWriter',
|
||||
'ToolingLogTextWriterConfig',
|
||||
'Writer',
|
||||
]
|
||||
},
|
||||
{
|
||||
fromPackage: '@kbn/dev-utils',
|
||||
toPackage: '@kbn/ci-stats-reporter',
|
||||
exportNames: [
|
||||
'CiStatsMetric',
|
||||
'CiStatsReporter',
|
||||
'CiStatsReportTestsOptions',
|
||||
'CiStatsTestGroupInfo',
|
||||
'CiStatsTestResult',
|
||||
'CiStatsTestRun',
|
||||
'CiStatsTestType',
|
||||
'CiStatsTiming',
|
||||
'getTimeReporter',
|
||||
'MetricsOptions',
|
||||
'TimingsOptions',
|
||||
]
|
||||
},
|
||||
{
|
||||
fromPackage: '@kbn/dev-utils',
|
||||
toPackage: '@kbn/ci-stats-core',
|
||||
exportNames: [
|
||||
'Config',
|
||||
]
|
||||
},
|
||||
{
|
||||
fromPackage: '@kbn/dev-utils',
|
||||
toPackage: '@kbn/jest-serializers',
|
||||
exportNames: [
|
||||
'createAbsolutePathSerializer',
|
||||
'createStripAnsiSerializer',
|
||||
'createRecursiveSerializer',
|
||||
'createAnyInstanceSerializer',
|
||||
'createReplaceSerializer',
|
||||
]
|
||||
},
|
||||
{
|
||||
fromPackage: '@kbn/dev-utils',
|
||||
toPackage: '@kbn/stdio-dev-helpers',
|
||||
exportNames: [
|
||||
'observeReadable',
|
||||
'observeLines',
|
||||
]
|
||||
},
|
||||
{
|
||||
fromPackage: '@kbn/dev-utils',
|
||||
toPackage: '@kbn/sort-package-json',
|
||||
exportNames: [
|
||||
'sortPackageJson',
|
||||
]
|
||||
},
|
||||
]],
|
||||
|
||||
'@kbn/eslint/no_async_promise_body': 'error',
|
||||
'@kbn/eslint/no_async_foreach': 'error',
|
||||
'@kbn/eslint/no_trailing_import_slash': 'error',
|
||||
|
|
120
packages/kbn-ci-stats-client/BUILD.bazel
Normal file
120
packages/kbn-ci-stats-client/BUILD.bazel
Normal file
|
@ -0,0 +1,120 @@
|
|||
load("@npm//@bazel/typescript:index.bzl", "ts_config")
|
||||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
|
||||
load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project")
|
||||
|
||||
PKG_DIRNAME = "kbn-ci-stats-client"
|
||||
PKG_REQUIRE_NAME = "@kbn/ci-stats-client"
|
||||
|
||||
SOURCE_FILES = glob(
|
||||
[
|
||||
"src/**/*.ts",
|
||||
],
|
||||
exclude = [
|
||||
"**/*.test.*",
|
||||
],
|
||||
)
|
||||
|
||||
SRCS = SOURCE_FILES
|
||||
|
||||
filegroup(
|
||||
name = "srcs",
|
||||
srcs = SRCS,
|
||||
)
|
||||
|
||||
NPM_MODULE_EXTRA_FILES = [
|
||||
"package.json",
|
||||
]
|
||||
|
||||
# In this array place runtime dependencies, including other packages and NPM packages
|
||||
# which must be available for this code to run.
|
||||
#
|
||||
# To reference other packages use:
|
||||
# "//repo/relative/path/to/package"
|
||||
# eg. "//packages/kbn-utils"
|
||||
#
|
||||
# To reference a NPM package use:
|
||||
# "@npm//name-of-package"
|
||||
# eg. "@npm//lodash"
|
||||
RUNTIME_DEPS = [
|
||||
"@npm//axios",
|
||||
"//packages/kbn-ci-stats-core",
|
||||
"//packages/kbn-tooling-log",
|
||||
]
|
||||
|
||||
# In this array place dependencies necessary to build the types, which will include the
|
||||
# :npm_module_types target of other packages and packages from NPM, including @types/*
|
||||
# packages.
|
||||
#
|
||||
# To reference the types for another package use:
|
||||
# "//repo/relative/path/to/package:npm_module_types"
|
||||
# eg. "//packages/kbn-utils:npm_module_types"
|
||||
#
|
||||
# References to NPM packages work the same as RUNTIME_DEPS
|
||||
TYPES_DEPS = [
|
||||
"@npm//@types/node",
|
||||
"@npm//@types/jest",
|
||||
"@npm//axios",
|
||||
"//packages/kbn-ci-stats-core:npm_module_types",
|
||||
"//packages/kbn-tooling-log:npm_module_types",
|
||||
]
|
||||
|
||||
jsts_transpiler(
|
||||
name = "target_node",
|
||||
srcs = SRCS,
|
||||
build_pkg_name = package_name(),
|
||||
)
|
||||
|
||||
ts_config(
|
||||
name = "tsconfig",
|
||||
src = "tsconfig.json",
|
||||
deps = [
|
||||
"//:tsconfig.base.json",
|
||||
"//:tsconfig.bazel.json",
|
||||
],
|
||||
)
|
||||
|
||||
ts_project(
|
||||
name = "tsc_types",
|
||||
args = ['--pretty'],
|
||||
srcs = SRCS,
|
||||
deps = TYPES_DEPS,
|
||||
declaration = True,
|
||||
emit_declaration_only = True,
|
||||
out_dir = "target_types",
|
||||
root_dir = "src",
|
||||
tsconfig = ":tsconfig",
|
||||
)
|
||||
|
||||
js_library(
|
||||
name = PKG_DIRNAME,
|
||||
srcs = NPM_MODULE_EXTRA_FILES,
|
||||
deps = RUNTIME_DEPS + [":target_node"],
|
||||
package_name = PKG_REQUIRE_NAME,
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
pkg_npm(
|
||||
name = "npm_module",
|
||||
deps = [":" + PKG_DIRNAME],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "build",
|
||||
srcs = [":npm_module"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
pkg_npm_types(
|
||||
name = "npm_module_types",
|
||||
srcs = SRCS,
|
||||
deps = [":tsc_types"],
|
||||
package_name = PKG_REQUIRE_NAME,
|
||||
tsconfig = ":tsconfig",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "build_types",
|
||||
srcs = [":npm_module_types"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
3
packages/kbn-ci-stats-client/README.md
Normal file
3
packages/kbn-ci-stats-client/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# @kbn/ci-stats-client
|
||||
|
||||
Client for reading data stored at https://ci-stats.kibana.dev
|
13
packages/kbn-ci-stats-client/jest.config.js
Normal file
13
packages/kbn-ci-stats-client/jest.config.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
preset: '@kbn/test/jest_node',
|
||||
rootDir: '../..',
|
||||
roots: ['<rootDir>/packages/kbn-ci-stats-client'],
|
||||
};
|
10
packages/kbn-ci-stats-client/package.json
Normal file
10
packages/kbn-ci-stats-client/package.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"name": "@kbn/ci-stats-client",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"main": "./target_node/index.js",
|
||||
"license": "SSPL-1.0 OR Elastic License 2.0",
|
||||
"kibana": {
|
||||
"devOnly": true
|
||||
}
|
||||
}
|
|
@ -7,10 +7,9 @@
|
|||
*/
|
||||
|
||||
import Axios from 'axios';
|
||||
import { ToolingLog } from '../tooling_log';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { parseConfig, Config } from './ci_stats_config';
|
||||
import { CiStatsMetadata } from './ci_stats_metadata';
|
||||
import { parseConfig, Config, CiStatsMetadata } from '@kbn/ci-stats-core';
|
||||
|
||||
interface LatestTestGroupStatsOptions {
|
||||
/** The Kibana branch to get stats for, eg "main" */
|
|
@ -6,5 +6,4 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export * from './observe_lines';
|
||||
export * from './observe_readable';
|
||||
export { CiStatsClient } from './ci_stats_client';
|
17
packages/kbn-ci-stats-client/tsconfig.json
Normal file
17
packages/kbn-ci-stats-client/tsconfig.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"extends": "../../tsconfig.bazel.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "target_types",
|
||||
"rootDir": "src",
|
||||
"stripInternal": false,
|
||||
"types": [
|
||||
"jest",
|
||||
"node"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
116
packages/kbn-ci-stats-core/BUILD.bazel
Normal file
116
packages/kbn-ci-stats-core/BUILD.bazel
Normal file
|
@ -0,0 +1,116 @@
|
|||
load("@npm//@bazel/typescript:index.bzl", "ts_config")
|
||||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
|
||||
load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project")
|
||||
|
||||
PKG_DIRNAME = "kbn-ci-stats-core"
|
||||
PKG_REQUIRE_NAME = "@kbn/ci-stats-core"
|
||||
|
||||
SOURCE_FILES = glob(
|
||||
[
|
||||
"src/**/*.ts",
|
||||
],
|
||||
exclude = [
|
||||
"**/*.test.*",
|
||||
],
|
||||
)
|
||||
|
||||
SRCS = SOURCE_FILES
|
||||
|
||||
filegroup(
|
||||
name = "srcs",
|
||||
srcs = SRCS,
|
||||
)
|
||||
|
||||
NPM_MODULE_EXTRA_FILES = [
|
||||
"package.json",
|
||||
]
|
||||
|
||||
# In this array place runtime dependencies, including other packages and NPM packages
|
||||
# which must be available for this code to run.
|
||||
#
|
||||
# To reference other packages use:
|
||||
# "//repo/relative/path/to/package"
|
||||
# eg. "//packages/kbn-utils"
|
||||
#
|
||||
# To reference a NPM package use:
|
||||
# "@npm//name-of-package"
|
||||
# eg. "@npm//lodash"
|
||||
RUNTIME_DEPS = [
|
||||
"//packages/kbn-tooling-log",
|
||||
]
|
||||
|
||||
# In this array place dependencies necessary to build the types, which will include the
|
||||
# :npm_module_types target of other packages and packages from NPM, including @types/*
|
||||
# packages.
|
||||
#
|
||||
# To reference the types for another package use:
|
||||
# "//repo/relative/path/to/package:npm_module_types"
|
||||
# eg. "//packages/kbn-utils:npm_module_types"
|
||||
#
|
||||
# References to NPM packages work the same as RUNTIME_DEPS
|
||||
TYPES_DEPS = [
|
||||
"@npm//@types/node",
|
||||
"@npm//@types/jest",
|
||||
"//packages/kbn-tooling-log:npm_module_types",
|
||||
]
|
||||
|
||||
jsts_transpiler(
|
||||
name = "target_node",
|
||||
srcs = SRCS,
|
||||
build_pkg_name = package_name(),
|
||||
)
|
||||
|
||||
ts_config(
|
||||
name = "tsconfig",
|
||||
src = "tsconfig.json",
|
||||
deps = [
|
||||
"//:tsconfig.base.json",
|
||||
"//:tsconfig.bazel.json",
|
||||
],
|
||||
)
|
||||
|
||||
ts_project(
|
||||
name = "tsc_types",
|
||||
args = ['--pretty'],
|
||||
srcs = SRCS,
|
||||
deps = TYPES_DEPS,
|
||||
declaration = True,
|
||||
emit_declaration_only = True,
|
||||
out_dir = "target_types",
|
||||
root_dir = "src",
|
||||
tsconfig = ":tsconfig",
|
||||
)
|
||||
|
||||
js_library(
|
||||
name = PKG_DIRNAME,
|
||||
srcs = NPM_MODULE_EXTRA_FILES,
|
||||
deps = RUNTIME_DEPS + [":target_node"],
|
||||
package_name = PKG_REQUIRE_NAME,
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
pkg_npm(
|
||||
name = "npm_module",
|
||||
deps = [":" + PKG_DIRNAME],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "build",
|
||||
srcs = [":npm_module"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
pkg_npm_types(
|
||||
name = "npm_module_types",
|
||||
srcs = SRCS,
|
||||
deps = [":tsc_types"],
|
||||
package_name = PKG_REQUIRE_NAME,
|
||||
tsconfig = ":tsconfig",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "build_types",
|
||||
srcs = [":npm_module_types"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
3
packages/kbn-ci-stats-core/README.md
Normal file
3
packages/kbn-ci-stats-core/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# @kbn/ci-stats-core
|
||||
|
||||
Config and types used by `@kbn/ci-stats-client` and `@kbn/ci-stats-reporter`.
|
13
packages/kbn-ci-stats-core/jest.config.js
Normal file
13
packages/kbn-ci-stats-core/jest.config.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
preset: '@kbn/test/jest_node',
|
||||
rootDir: '../..',
|
||||
roots: ['<rootDir>/packages/kbn-ci-stats-core'],
|
||||
};
|
10
packages/kbn-ci-stats-core/package.json
Normal file
10
packages/kbn-ci-stats-core/package.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"name": "@kbn/ci-stats-core",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"main": "./target_node/index.js",
|
||||
"license": "SSPL-1.0 OR Elastic License 2.0",
|
||||
"kibana": {
|
||||
"devOnly": true
|
||||
}
|
||||
}
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import type { ToolingLog } from '../tooling_log';
|
||||
import type { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
/**
|
||||
* Information about how CiStatsReporter should talk to the ci-stats service. Normally
|
|
@ -6,9 +6,6 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export * from './ci_stats_reporter';
|
||||
export type { Config } from './ci_stats_config';
|
||||
export * from './ship_ci_stats_cli';
|
||||
export { getTimeReporter } from './report_time';
|
||||
export * from './ci_stats_test_group_types';
|
||||
export * from './ci_stats_client';
|
||||
export { parseConfig } from './ci_stats_config';
|
||||
export type { CiStatsMetadata } from './ci_stats_metadata';
|
17
packages/kbn-ci-stats-core/tsconfig.json
Normal file
17
packages/kbn-ci-stats-core/tsconfig.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"extends": "../../tsconfig.bazel.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "target_types",
|
||||
"rootDir": "src",
|
||||
"stripInternal": false,
|
||||
"types": [
|
||||
"jest",
|
||||
"node"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
122
packages/kbn-ci-stats-reporter/BUILD.bazel
Normal file
122
packages/kbn-ci-stats-reporter/BUILD.bazel
Normal file
|
@ -0,0 +1,122 @@
|
|||
load("@npm//@bazel/typescript:index.bzl", "ts_config")
|
||||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
|
||||
load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project")
|
||||
|
||||
PKG_DIRNAME = "kbn-ci-stats-reporter"
|
||||
PKG_REQUIRE_NAME = "@kbn/ci-stats-reporter"
|
||||
|
||||
SOURCE_FILES = glob(
|
||||
[
|
||||
"src/**/*.ts",
|
||||
],
|
||||
exclude = [
|
||||
"**/*.test.*",
|
||||
],
|
||||
)
|
||||
|
||||
SRCS = SOURCE_FILES
|
||||
|
||||
filegroup(
|
||||
name = "srcs",
|
||||
srcs = SRCS,
|
||||
)
|
||||
|
||||
NPM_MODULE_EXTRA_FILES = [
|
||||
"package.json",
|
||||
]
|
||||
|
||||
# In this array place runtime dependencies, including other packages and NPM packages
|
||||
# which must be available for this code to run.
|
||||
#
|
||||
# To reference other packages use:
|
||||
# "//repo/relative/path/to/package"
|
||||
# eg. "//packages/kbn-utils"
|
||||
#
|
||||
# To reference a NPM package use:
|
||||
# "@npm//name-of-package"
|
||||
# eg. "@npm//lodash"
|
||||
RUNTIME_DEPS = [
|
||||
"@npm//axios",
|
||||
"@npm//execa",
|
||||
"//packages/kbn-tooling-log",
|
||||
"//packages/kbn-ci-stats-core",
|
||||
]
|
||||
|
||||
# In this array place dependencies necessary to build the types, which will include the
|
||||
# :npm_module_types target of other packages and packages from NPM, including @types/*
|
||||
# packages.
|
||||
#
|
||||
# To reference the types for another package use:
|
||||
# "//repo/relative/path/to/package:npm_module_types"
|
||||
# eg. "//packages/kbn-utils:npm_module_types"
|
||||
#
|
||||
# References to NPM packages work the same as RUNTIME_DEPS
|
||||
TYPES_DEPS = [
|
||||
"@npm//axios",
|
||||
"@npm//execa",
|
||||
"@npm//@types/node",
|
||||
"@npm//@types/jest",
|
||||
"//packages/kbn-tooling-log:npm_module_types",
|
||||
"//packages/kbn-ci-stats-core:npm_module_types",
|
||||
]
|
||||
|
||||
jsts_transpiler(
|
||||
name = "target_node",
|
||||
srcs = SRCS,
|
||||
build_pkg_name = package_name(),
|
||||
)
|
||||
|
||||
ts_config(
|
||||
name = "tsconfig",
|
||||
src = "tsconfig.json",
|
||||
deps = [
|
||||
"//:tsconfig.base.json",
|
||||
"//:tsconfig.bazel.json",
|
||||
],
|
||||
)
|
||||
|
||||
ts_project(
|
||||
name = "tsc_types",
|
||||
args = ['--pretty'],
|
||||
srcs = SRCS,
|
||||
deps = TYPES_DEPS,
|
||||
declaration = True,
|
||||
emit_declaration_only = True,
|
||||
out_dir = "target_types",
|
||||
root_dir = "src",
|
||||
tsconfig = ":tsconfig",
|
||||
)
|
||||
|
||||
js_library(
|
||||
name = PKG_DIRNAME,
|
||||
srcs = NPM_MODULE_EXTRA_FILES,
|
||||
deps = RUNTIME_DEPS + [":target_node"],
|
||||
package_name = PKG_REQUIRE_NAME,
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
pkg_npm(
|
||||
name = "npm_module",
|
||||
deps = [":" + PKG_DIRNAME],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "build",
|
||||
srcs = [":npm_module"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
pkg_npm_types(
|
||||
name = "npm_module_types",
|
||||
srcs = SRCS,
|
||||
deps = [":tsc_types"],
|
||||
package_name = PKG_REQUIRE_NAME,
|
||||
tsconfig = ":tsconfig",
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "build_types",
|
||||
srcs = [":npm_module_types"],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
13
packages/kbn-ci-stats-reporter/jest.config.js
Normal file
13
packages/kbn-ci-stats-reporter/jest.config.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
preset: '@kbn/test/jest_node',
|
||||
rootDir: '../..',
|
||||
roots: ['<rootDir>/packages/kbn-ci-stats-reporter'],
|
||||
};
|
10
packages/kbn-ci-stats-reporter/package.json
Normal file
10
packages/kbn-ci-stats-reporter/package.json
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"name": "@kbn/ci-stats-reporter",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"main": "./target_node/index.js",
|
||||
"license": "SSPL-1.0 OR Elastic License 2.0",
|
||||
"kibana": {
|
||||
"devOnly": true
|
||||
}
|
||||
}
|
|
@ -16,11 +16,10 @@ import execa from 'execa';
|
|||
import Axios, { AxiosRequestConfig } from 'axios';
|
||||
// @ts-expect-error not "public", but necessary to prevent Jest shimming from breaking things
|
||||
import httpAdapter from 'axios/lib/adapters/http';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { ToolingLog } from '../tooling_log';
|
||||
import { parseConfig, Config } from './ci_stats_config';
|
||||
import { parseConfig, Config, CiStatsMetadata } from '@kbn/ci-stats-core';
|
||||
import type { CiStatsTestGroupInfo, CiStatsTestRun } from './ci_stats_test_group_types';
|
||||
import { CiStatsMetadata } from './ci_stats_metadata';
|
||||
|
||||
const BASE_URL = 'https://ci-stats.kibana.dev';
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import type { CiStatsMetadata } from './ci_stats_metadata';
|
||||
import type { CiStatsMetadata } from '@kbn/ci-stats-core';
|
||||
|
||||
export type CiStatsTestResult = 'fail' | 'pass' | 'skip';
|
||||
export type CiStatsTestType =
|
23
packages/kbn-ci-stats-reporter/src/index.ts
Normal file
23
packages/kbn-ci-stats-reporter/src/index.ts
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||
* or more contributor license agreements. Licensed under the Elastic License
|
||||
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
export type {
|
||||
CiStatsMetric,
|
||||
CiStatsReportTestsOptions,
|
||||
CiStatsTiming,
|
||||
MetricsOptions,
|
||||
TimingsOptions,
|
||||
} from './ci_stats_reporter';
|
||||
export { CiStatsReporter } from './ci_stats_reporter';
|
||||
export { getTimeReporter } from './report_time';
|
||||
export type {
|
||||
CiStatsTestGroupInfo,
|
||||
CiStatsTestResult,
|
||||
CiStatsTestRun,
|
||||
CiStatsTestType,
|
||||
} from './ci_stats_test_group_types';
|
|
@ -6,7 +6,9 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { CiStatsReporter, ToolingLog } from '..';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { CiStatsReporter } from './ci_stats_reporter';
|
||||
|
||||
export const getTimeReporter = (log: ToolingLog, group: string) => {
|
||||
const reporter = CiStatsReporter.fromEnv(log);
|
17
packages/kbn-ci-stats-reporter/tsconfig.json
Normal file
17
packages/kbn-ci-stats-reporter/tsconfig.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"extends": "../../tsconfig.bazel.json",
|
||||
"compilerOptions": {
|
||||
"declaration": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "target_types",
|
||||
"rootDir": "src",
|
||||
"stripInternal": false,
|
||||
"types": [
|
||||
"jest",
|
||||
"node"
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
]
|
||||
}
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import Path from 'path';
|
||||
import * as Rx from 'rxjs';
|
||||
import { createAbsolutePathSerializer, createAnyInstanceSerializer } from '@kbn/dev-utils';
|
||||
import { createAbsolutePathSerializer, createAnyInstanceSerializer } from '@kbn/jest-serializers';
|
||||
|
||||
import { REPO_ROOT } from '@kbn/utils';
|
||||
|
||||
|
@ -32,8 +32,8 @@ const { DevServer } = jest.requireMock('./dev_server');
|
|||
jest.mock('./base_path_proxy_server');
|
||||
const { BasePathProxyServer } = jest.requireMock('./base_path_proxy_server');
|
||||
|
||||
jest.mock('@kbn/dev-utils/ci_stats_reporter');
|
||||
const { CiStatsReporter } = jest.requireMock('@kbn/dev-utils/ci_stats_reporter');
|
||||
jest.mock('@kbn/ci-stats-reporter');
|
||||
const { CiStatsReporter } = jest.requireMock('@kbn/ci-stats-reporter');
|
||||
|
||||
jest.mock('./get_server_watch_paths', () => ({
|
||||
getServerWatchPaths: jest.fn(() => ({
|
||||
|
|
|
@ -22,7 +22,7 @@ import {
|
|||
takeUntil,
|
||||
} from 'rxjs/operators';
|
||||
import { CliArgs } from '@kbn/config';
|
||||
import { CiStatsReporter } from '@kbn/dev-utils';
|
||||
import { CiStatsReporter } from '@kbn/ci-stats-reporter';
|
||||
import { REPO_ROOT } from '@kbn/utils';
|
||||
|
||||
import { Log, CliLog } from './log';
|
||||
|
|
|
@ -18,7 +18,7 @@ import {
|
|||
takeUntil,
|
||||
ignoreElements,
|
||||
} from 'rxjs/operators';
|
||||
import { observeLines } from '@kbn/dev-utils';
|
||||
import { observeLines } from '@kbn/stdio-dev-helpers';
|
||||
|
||||
import { usingServerProcess } from './using_server_process';
|
||||
import { Watcher } from './watcher';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import Path from 'path';
|
||||
|
||||
import { createAbsolutePathSerializer } from '@kbn/dev-utils';
|
||||
import { createAbsolutePathSerializer } from '@kbn/jest-serializers';
|
||||
import { REPO_ROOT } from '@kbn/utils';
|
||||
|
||||
import { getServerWatchPaths } from './get_server_watch_paths';
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
/* eslint-disable max-classes-per-file */
|
||||
|
||||
import Chalk from 'chalk';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
export interface Log {
|
||||
toolingLog: ToolingLog;
|
||||
|
|
|
@ -11,7 +11,8 @@ import { PassThrough } from 'stream';
|
|||
import * as Rx from 'rxjs';
|
||||
import { toArray } from 'rxjs/operators';
|
||||
import { OptimizerUpdate } from '@kbn/optimizer';
|
||||
import { observeLines, createReplaceSerializer } from '@kbn/dev-utils';
|
||||
import { observeLines } from '@kbn/stdio-dev-helpers';
|
||||
import { createReplaceSerializer } from '@kbn/jest-serializers';
|
||||
|
||||
import { Optimizer, Options } from './optimizer';
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
pickLevelFromFlags,
|
||||
ToolingLogTextWriter,
|
||||
parseLogLevel,
|
||||
} from '@kbn/dev-utils';
|
||||
} from '@kbn/tooling-log';
|
||||
import * as Rx from 'rxjs';
|
||||
import { ignoreElements } from 'rxjs/operators';
|
||||
import {
|
||||
|
|
|
@ -36,17 +36,17 @@ filegroup(
|
|||
NPM_MODULE_EXTRA_FILES = [
|
||||
"package.json",
|
||||
"README.md",
|
||||
":certs",
|
||||
"ci_stats_reporter/package.json",
|
||||
"sort_package_json/package.json",
|
||||
"stdio/package.json",
|
||||
"tooling_log/package.json"
|
||||
":certs"
|
||||
]
|
||||
|
||||
RUNTIME_DEPS = [
|
||||
"//packages/kbn-std",
|
||||
"//packages/kbn-utils",
|
||||
"//packages/kbn-plugin-discovery",
|
||||
"//packages/kbn-tooling-log",
|
||||
"//packages/kbn-stdio-dev-helpers",
|
||||
"//packages/kbn-ci-stats-reporter",
|
||||
"//packages/kbn-jest-serializers",
|
||||
"@npm//@babel/core",
|
||||
"@npm//axios",
|
||||
"@npm//chalk",
|
||||
|
@ -73,6 +73,10 @@ TYPES_DEPS = [
|
|||
"//packages/kbn-std:npm_module_types",
|
||||
"//packages/kbn-utils:npm_module_types",
|
||||
"//packages/kbn-plugin-discovery:npm_module_types",
|
||||
"//packages/kbn-tooling-log:npm_module_types",
|
||||
"//packages/kbn-stdio-dev-helpers:npm_module_types",
|
||||
"//packages/kbn-ci-stats-reporter:npm_module_types",
|
||||
"//packages/kbn-jest-serializers:npm_module_types",
|
||||
"@npm//@babel/parser",
|
||||
"@npm//@babel/types",
|
||||
"@npm//@types/babel__core",
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"main": "../target_node/ci_stats_reporter/ci_stats_reporter",
|
||||
"types": "../target_types/ci_stats_reporter/ci_stats_reporter"
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"main": "../target_node/sort_package_json",
|
||||
"types": "../target_types/sort_package_json"
|
||||
}
|
|
@ -7,8 +7,6 @@
|
|||
*/
|
||||
|
||||
export { withProcRunner, ProcRunner } from './proc_runner';
|
||||
export * from './tooling_log';
|
||||
export * from './serializers';
|
||||
export {
|
||||
CA_CERT_PATH,
|
||||
ES_KEY_PATH,
|
||||
|
@ -24,12 +22,10 @@ export {
|
|||
} from './certs';
|
||||
export * from './run';
|
||||
export * from './axios';
|
||||
export * from './stdio';
|
||||
export * from './ci_stats_reporter';
|
||||
export * from './ship_ci_stats_cli';
|
||||
export * from './plugin_list';
|
||||
export * from './streams';
|
||||
export * from './babel';
|
||||
export * from './extract';
|
||||
export * from './vscode_config';
|
||||
export * from './sort_package_json';
|
||||
export * from './diff_strings';
|
||||
|
|
|
@ -17,8 +17,8 @@ import treeKill from 'tree-kill';
|
|||
import { promisify } from 'util';
|
||||
const treeKillAsync = promisify((...args: [number, string, any]) => treeKill(...args));
|
||||
|
||||
import { ToolingLog } from '../tooling_log';
|
||||
import { observeLines } from '../stdio';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { observeLines } from '@kbn/stdio-dev-helpers';
|
||||
import { createFailError } from '../run';
|
||||
|
||||
const SECOND = 1000;
|
||||
|
|
|
@ -10,7 +10,7 @@ import * as Rx from 'rxjs';
|
|||
import { filter, first, catchError, map } from 'rxjs/operators';
|
||||
import exitHook from 'exit-hook';
|
||||
|
||||
import { ToolingLog } from '../tooling_log';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { createFailError } from '../run';
|
||||
import { Proc, ProcOptions, startProc } from './proc';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ToolingLog } from '../tooling_log';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { withProcRunner } from './with_proc_runner';
|
||||
import { ProcRunner } from './proc_runner';
|
||||
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { ProcRunner } from './proc_runner';
|
||||
import { ToolingLog } from '../tooling_log';
|
||||
|
||||
/**
|
||||
* Create a ProcRunner and pass it to an async function. When
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
import { inspect } from 'util';
|
||||
|
||||
import exitHook from 'exit-hook';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { ToolingLog } from '../tooling_log';
|
||||
import { isFailError } from './fail';
|
||||
|
||||
/**
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
import getopts from 'getopts';
|
||||
|
||||
import { LOG_LEVEL_FLAGS, DEFAULT_LOG_LEVEL } from '@kbn/tooling-log';
|
||||
import { RunOptions } from './run';
|
||||
import { LOG_LEVEL_FLAGS, DEFAULT_LOG_LEVEL } from '../tooling_log/log_levels';
|
||||
|
||||
export interface Flags {
|
||||
verbose: boolean;
|
||||
|
|
|
@ -11,9 +11,9 @@ import Path from 'path';
|
|||
import chalk from 'chalk';
|
||||
import 'core-js/features/string/repeat';
|
||||
import dedent from 'dedent';
|
||||
import { getLogLevelFlagsHelp } from '@kbn/tooling-log';
|
||||
|
||||
import { Command } from './run_with_commands';
|
||||
import { getLogLevelFlagsHelp } from '../tooling_log/log_levels';
|
||||
|
||||
const DEFAULT_GLOBAL_USAGE = `node ${Path.relative(process.cwd(), process.argv[1])}`;
|
||||
export const GLOBAL_FLAGS = dedent`
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
import path from 'path';
|
||||
import { REPO_ROOT } from '@kbn/utils';
|
||||
import normalizePath from 'normalize-path';
|
||||
import { CiStatsReporter } from '../ci_stats_reporter';
|
||||
import { ToolingLog } from '../tooling_log';
|
||||
import { CiStatsReporter } from '@kbn/ci-stats-reporter';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
export type MetricsMeta = Map<string, string | boolean | number>;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { pickLevelFromFlags, ToolingLog, LogLevel } from '../tooling_log';
|
||||
import { pickLevelFromFlags, ToolingLog, LogLevel } from '@kbn/tooling-log';
|
||||
import { createFlagError } from './fail';
|
||||
import { Flags, getFlags, FlagOptions } from './flags';
|
||||
import { ProcRunner, withProcRunner } from '../proc_runner';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import { RunWithCommands } from './run_with_commands';
|
||||
import { ToolingLog, ToolingLogCollectingWriter } from '../tooling_log';
|
||||
import { ToolingLog, ToolingLogCollectingWriter } from '@kbn/tooling-log';
|
||||
import { ProcRunner } from '../proc_runner';
|
||||
|
||||
const testLog = new ToolingLog();
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ToolingLog, pickLevelFromFlags } from '../tooling_log';
|
||||
import { ToolingLog, pickLevelFromFlags } from '@kbn/tooling-log';
|
||||
import { RunContext, RunOptions } from './run';
|
||||
import { getFlags, FlagOptions, mergeFlagOptions } from './flags';
|
||||
import { Cleanup } from './cleanup';
|
||||
|
|
|
@ -9,8 +9,9 @@
|
|||
import Path from 'path';
|
||||
import Fs from 'fs';
|
||||
|
||||
import { CiStatsReporter } from './ci_stats_reporter';
|
||||
import { run, createFlagError, createFailError } from '../run';
|
||||
import { CiStatsReporter } from '@kbn/ci-stats-reporter';
|
||||
|
||||
import { run, createFlagError, createFailError } from './run';
|
||||
|
||||
export function shipCiStatsCli() {
|
||||
run(
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"main": "../target_node/stdio",
|
||||
"types": "../target_types/stdio"
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"main": "../target_node/tooling_log",
|
||||
"types": "../target_types/tooling_log"
|
||||
}
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import Path from 'path';
|
||||
import { Project, Node } from 'ts-morph';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { TypeKind, ApiScope, PluginOrPackage } from '../types';
|
||||
import { getKibanaPlatformPlugin } from '../tests/kibana_platform_plugin_mock';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import { FunctionTypeNode, Node } from 'ts-morph';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { buildClassDec } from './build_class_dec';
|
||||
import { buildFunctionDec } from './build_function_dec';
|
||||
import { isNamedNode } from '../tsmorph_utils';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import { REPO_ROOT } from '@kbn/utils';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { getPluginApiDocId } from '../utils';
|
||||
import { extractImportReferences } from './extract_import_refs';
|
||||
import { ApiScope, PluginOrPackage, Reference } from '../types';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { getApiSectionId, getPluginApiDocId, getPluginForPath } from '../utils';
|
||||
import { ApiScope, PluginOrPackage, TextWithLinks } from '../types';
|
||||
import { getRelativePath, pathsOutsideScopes } from './utils';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import { Node, ReferenceFindableNode } from 'ts-morph';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { getPluginForPath } from '../utils';
|
||||
import { getSourceForNode } from './utils';
|
||||
import { ApiDeclaration, ApiReference, PluginOrPackage } from '../types';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
/* eslint-disable no-bitwise */
|
||||
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { Node, TypeFormatFlags } from 'ts-morph';
|
||||
import { isNamedNode } from '../tsmorph_utils';
|
||||
import { PluginOrPackage, Reference } from '../types';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { ApiScope, PluginOrPackage } from '../types';
|
||||
|
||||
export interface BuildApiDecOpts {
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
import Fs from 'fs';
|
||||
import Path from 'path';
|
||||
|
||||
import { run, CiStatsReporter, createFlagError } from '@kbn/dev-utils';
|
||||
import { run, createFlagError } from '@kbn/dev-utils';
|
||||
import { CiStatsReporter } from '@kbn/ci-stats-reporter';
|
||||
import { REPO_ROOT } from '@kbn/utils';
|
||||
import { Project } from 'ts-morph';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import Path from 'path';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { Project, SourceFile, Node } from 'ts-morph';
|
||||
import { ApiScope, PluginOrPackage } from './types';
|
||||
import { isNamedNode, getSourceFileMatching } from './tsmorph_utils';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import Path from 'path';
|
||||
import { Node, Project } from 'ts-morph';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { ApiScope, Lifecycle, PluginOrPackage } from './types';
|
||||
import { ApiDeclaration, PluginApi } from './types';
|
||||
import { buildApiDeclarationTopNode } from './build_api_declarations/build_api_declaration';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { Project } from 'ts-morph';
|
||||
import { getPluginApi } from './get_plugin_api';
|
||||
import {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import Path from 'path';
|
||||
import { ApiDeclaration, ApiReference, ReferencedDeprecationsByPlugin } from '../types';
|
||||
import { getPluginApiDocId } from '../utils';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import Path from 'path';
|
||||
import { Project } from 'ts-morph';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { PluginApi, PluginOrPackage } from '../types';
|
||||
import { getKibanaPlatformPlugin } from '../tests/kibana_platform_plugin_mock';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { ApiStats, PluginApi, PluginOrPackage } from '../types';
|
||||
|
||||
export interface WritePluginDocsOpts {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import moment from 'moment';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import dedent from 'dedent';
|
||||
import fs from 'fs';
|
||||
import Path from 'path';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import moment from 'moment';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import dedent from 'dedent';
|
||||
import fs from 'fs';
|
||||
import Path from 'path';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
import moment from 'moment';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import dedent from 'dedent';
|
||||
import fs from 'fs';
|
||||
import Path from 'path';
|
||||
|
|
|
@ -9,7 +9,7 @@ import moment from 'moment';
|
|||
import fs from 'fs';
|
||||
import Path from 'path';
|
||||
import dedent from 'dedent';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { PluginApi, PluginMetaInfo } from '../types';
|
||||
import { getPluginApiDocId } from '../utils';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import { Project } from 'ts-morph';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { splitApisByFolder } from './write_plugin_split_by_folder';
|
||||
import { getPluginApi } from '../get_plugin_api';
|
||||
import { getKibanaPlatformPlugin } from '../tests/kibana_platform_plugin_mock';
|
||||
|
|
|
@ -10,7 +10,7 @@ import fs from 'fs';
|
|||
import Path from 'path';
|
||||
|
||||
import { Project } from 'ts-morph';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { writePluginDocs } from '../mdx/write_plugin_mdx_docs';
|
||||
import {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import Path from 'path';
|
||||
import { Project } from 'ts-morph';
|
||||
import { findPlugins } from './find_plugins';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
import path from 'path';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import {
|
||||
ApiDeclaration,
|
||||
ScopeApi,
|
||||
|
|
|
@ -11,7 +11,7 @@ import Fs from 'fs';
|
|||
import { createGunzip, createGzip, constants } from 'zlib';
|
||||
import { promisify } from 'util';
|
||||
import globby from 'globby';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { createPromiseFromStreams } from '@kbn/utils';
|
||||
|
||||
const unlinkAsync = promisify(Fs.unlink);
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { KbnClient } from '@kbn/test';
|
||||
|
||||
import { migrateKibanaIndex, createStats, cleanKibanaIndices } from '../lib';
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
import { resolve, relative } from 'path';
|
||||
import { createReadStream } from 'fs';
|
||||
import { Readable } from 'stream';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { REPO_ROOT } from '@kbn/utils';
|
||||
import { KbnClient } from '@kbn/test';
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
|
|
|
@ -10,7 +10,7 @@ import { resolve, relative } from 'path';
|
|||
import { Stats, createReadStream, createWriteStream } from 'fs';
|
||||
import { stat, rename } from 'fs/promises';
|
||||
import { Readable, Writable } from 'stream';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { createPromiseFromStreams, REPO_ROOT } from '@kbn/utils';
|
||||
import {
|
||||
prioritizeMappings,
|
||||
|
|
|
@ -10,7 +10,7 @@ import { resolve, relative } from 'path';
|
|||
import { createWriteStream, mkdirSync } from 'fs';
|
||||
import { Readable, Writable } from 'stream';
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { createListStream, createPromiseFromStreams, REPO_ROOT } from '@kbn/utils';
|
||||
|
||||
import {
|
||||
|
|
|
@ -10,7 +10,7 @@ import { resolve, relative } from 'path';
|
|||
import { createReadStream } from 'fs';
|
||||
import { Readable, Writable } from 'stream';
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { KbnClient } from '@kbn/test';
|
||||
import { createPromiseFromStreams, REPO_ROOT } from '@kbn/utils';
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import Fs from 'fs';
|
|||
import Path from 'path';
|
||||
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { REPO_ROOT } from '@kbn/utils';
|
||||
import { KbnClient } from '@kbn/test';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import {
|
||||
createListStream,
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ToolingLog, createRecursiveSerializer } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { createRecursiveSerializer } from '@kbn/jest-serializers';
|
||||
|
||||
import { createListStream, createPromiseFromStreams } from '@kbn/utils';
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import sinon from 'sinon';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { Stats } from '../../stats';
|
||||
|
||||
type StubStats = Stats & {
|
||||
|
|
|
@ -11,7 +11,7 @@ import { inspect } from 'util';
|
|||
|
||||
import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey';
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { Stats } from '../stats';
|
||||
import { deleteKibanaIndices } from './kibana_index';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { Stats } from '../stats';
|
||||
import { ES_CLIENT_HEADERS } from '../../client_headers';
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import { Transform } from 'stream';
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { Stats } from '../stats';
|
||||
import { deleteIndex } from './delete_index';
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
import { inspect } from 'util';
|
||||
|
||||
import type { Client } from '@elastic/elasticsearch';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { KbnClient } from '@kbn/test';
|
||||
import { Stats } from '../stats';
|
||||
import { deleteIndex } from './delete_index';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
const SECOND = 1000;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
import { uniq } from 'lodash';
|
||||
import sinon from 'sinon';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { createStats } from './stats';
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { cloneDeep } from 'lodash';
|
||||
|
||||
export interface IndexStats {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
jest.mock('node-fetch');
|
||||
import fetch from 'node-fetch';
|
||||
const { Response } = jest.requireActual('node-fetch');
|
||||
|
|
|
@ -16,7 +16,7 @@ import { setTimeout } from 'timers/promises';
|
|||
import fetch, { Headers } from 'node-fetch';
|
||||
import AbortController from 'abort-controller';
|
||||
import chalk from 'chalk';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { cache } from './utils/cache';
|
||||
import { resolveCustomSnapshotUrl } from './custom_snapshots';
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
|
||||
const dedent = require('dedent');
|
||||
const getopts = require('getopts');
|
||||
import { ToolingLog, getTimeReporter } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
import { getTimeReporter } from '@kbn/ci-stats-reporter';
|
||||
const { Cluster } = require('../cluster');
|
||||
const { parseTimeoutToMs } = require('../utils');
|
||||
|
||||
|
|
|
@ -12,7 +12,8 @@ import path from 'path';
|
|||
import chalk from 'chalk';
|
||||
import execa from 'execa';
|
||||
import del from 'del';
|
||||
import { extract, ToolingLog } from '@kbn/dev-utils';
|
||||
import { extract } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { BASE_PATH, ES_CONFIG, ES_KEYSTORE_BIN } from '../paths';
|
||||
import { Artifact } from '../artifact';
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
import path from 'path';
|
||||
|
||||
import chalk from 'chalk';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { BASE_PATH } from '../paths';
|
||||
import { installArchive } from './install_archive';
|
||||
|
|
|
@ -13,7 +13,7 @@ import crypto from 'crypto';
|
|||
|
||||
import chalk from 'chalk';
|
||||
import simpleGit from 'simple-git/promise';
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { installArchive } from './install_archive';
|
||||
import { log as defaultLog } from '../utils/log';
|
||||
|
|
|
@ -6,13 +6,9 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
const {
|
||||
ToolingLog,
|
||||
ToolingLogCollectingWriter,
|
||||
ES_NOPASSWORD_P12_PATH,
|
||||
createAnyInstanceSerializer,
|
||||
createStripAnsiSerializer,
|
||||
} = require('@kbn/dev-utils');
|
||||
const { ES_NOPASSWORD_P12_PATH } = require('@kbn/dev-utils');
|
||||
const { ToolingLog, ToolingLogCollectingWriter } = require('@kbn/tooling-log');
|
||||
const { createAnyInstanceSerializer, createStripAnsiSerializer } = require('@kbn/jest-serializers');
|
||||
const execa = require('execa');
|
||||
const { Cluster } = require('../cluster');
|
||||
const { installSource, installSnapshot, installArchive } = require('../install');
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
import path from 'path';
|
||||
import os from 'os';
|
||||
|
||||
import { ToolingLog, withProcRunner } from '@kbn/dev-utils';
|
||||
import { withProcRunner } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
import { createCliError } from '../errors';
|
||||
import { findMostRecentlyChanged } from './find_most_recently_changed';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import { ToolingLog } from '@kbn/dev-utils';
|
||||
import { ToolingLog } from '@kbn/tooling-log';
|
||||
|
||||
export const log = new ToolingLog({
|
||||
level: 'verbose',
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue