Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
This commit is contained in:
parent
ef2cc7ca99
commit
78fb42a25e
|
@ -62,6 +62,7 @@ yarn kbn watch-bazel
|
|||
=== List of Already Migrated Packages to Bazel
|
||||
|
||||
- @elastic/datemath
|
||||
- @elastic/eslint-config-kibana
|
||||
- @elastic/safer-lodash-set
|
||||
- @kbn/apm-config-loader
|
||||
- @kbn/apm-utils
|
||||
|
|
|
@ -428,7 +428,7 @@
|
|||
"@cypress/webpack-preprocessor": "^5.6.0",
|
||||
"@elastic/apm-rum": "^5.6.1",
|
||||
"@elastic/apm-rum-react": "^1.2.5",
|
||||
"@elastic/eslint-config-kibana": "link:packages/elastic-eslint-config-kibana",
|
||||
"@elastic/eslint-config-kibana": "link:bazel-bin/packages/elastic-eslint-config-kibana/npm_module",
|
||||
"@elastic/eslint-plugin-eui": "0.0.2",
|
||||
"@elastic/github-checks-reporter": "0.0.20b3",
|
||||
"@elastic/makelogs": "^6.0.0",
|
||||
|
|
|
@ -4,6 +4,7 @@ filegroup(
|
|||
name = "build",
|
||||
srcs = [
|
||||
"//packages/elastic-datemath:build",
|
||||
"//packages/elastic-eslint-config-kibana:build",
|
||||
"//packages/elastic-safer-lodash-set:build",
|
||||
"//packages/kbn-apm-config-loader:build",
|
||||
"//packages/kbn-apm-utils:build",
|
||||
|
|
56
packages/elastic-eslint-config-kibana/BUILD.bazel
Normal file
56
packages/elastic-eslint-config-kibana/BUILD.bazel
Normal file
|
@ -0,0 +1,56 @@
|
|||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
|
||||
|
||||
PKG_BASE_NAME = "elastic-eslint-config-kibana"
|
||||
PKG_REQUIRE_NAME = "@elastic/eslint-config-kibana"
|
||||
|
||||
SOURCE_FILES = glob([
|
||||
".eslintrc.js",
|
||||
"javascript.js",
|
||||
"jest.js",
|
||||
"react.js",
|
||||
"restricted_globals.js",
|
||||
"typescript.js",
|
||||
])
|
||||
|
||||
SRCS = SOURCE_FILES
|
||||
|
||||
filegroup(
|
||||
name = "srcs",
|
||||
srcs = SRCS,
|
||||
)
|
||||
|
||||
NPM_MODULE_EXTRA_FILES = [
|
||||
"package.json",
|
||||
"README.md",
|
||||
]
|
||||
|
||||
DEPS = [
|
||||
"//packages/kbn-dev-utils",
|
||||
"@npm//eslint-config-prettier",
|
||||
"@npm//semver",
|
||||
]
|
||||
|
||||
js_library(
|
||||
name = PKG_BASE_NAME,
|
||||
srcs = NPM_MODULE_EXTRA_FILES + [
|
||||
":srcs",
|
||||
],
|
||||
deps = DEPS,
|
||||
package_name = PKG_REQUIRE_NAME,
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
pkg_npm(
|
||||
name = "npm_module",
|
||||
deps = [
|
||||
":%s" % PKG_BASE_NAME,
|
||||
]
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "build",
|
||||
srcs = [
|
||||
":npm_module",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
Loading…
Reference in a new issue