* chore(NA): moving @kbn/es-query to babel transpiler * chore(NA): update limits Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
58 lines
930 B
Python
58 lines
930 B
Python
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-babel-preset",
|
|
"//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"],
|
|
)
|