Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
This commit is contained in:
parent
7c73a507e8
commit
bb24201dc5
|
@ -66,6 +66,7 @@ yarn kbn watch-bazel
|
|||
- @kbn/babel-code-parser
|
||||
- @kbn/babel-preset
|
||||
- @kbn/config-schema
|
||||
- @kbn/expect
|
||||
- @kbn/std
|
||||
- @kbn/tinymath
|
||||
- @kbn/utility-types
|
||||
|
|
|
@ -443,7 +443,7 @@
|
|||
"@kbn/es-archiver": "link:packages/kbn-es-archiver",
|
||||
"@kbn/eslint-import-resolver-kibana": "link:packages/kbn-eslint-import-resolver-kibana",
|
||||
"@kbn/eslint-plugin-eslint": "link:packages/kbn-eslint-plugin-eslint",
|
||||
"@kbn/expect": "link:packages/kbn-expect",
|
||||
"@kbn/expect": "link:bazel-bin/packages/kbn-expect/npm_module",
|
||||
"@kbn/optimizer": "link:packages/kbn-optimizer",
|
||||
"@kbn/plugin-generator": "link:packages/kbn-plugin-generator",
|
||||
"@kbn/plugin-helpers": "link:packages/kbn-plugin-helpers",
|
||||
|
|
|
@ -8,6 +8,7 @@ filegroup(
|
|||
"//packages/kbn-babel-code-parser:build",
|
||||
"//packages/kbn-babel-preset:build",
|
||||
"//packages/kbn-config-schema:build",
|
||||
"//packages/kbn-expect:build",
|
||||
"//packages/kbn-std:build",
|
||||
"//packages/kbn-tinymath:build",
|
||||
"//packages/kbn-utility-types:build",
|
||||
|
|
46
packages/kbn-expect/BUILD.bazel
Normal file
46
packages/kbn-expect/BUILD.bazel
Normal file
|
@ -0,0 +1,46 @@
|
|||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
|
||||
|
||||
PKG_BASE_NAME = "kbn-expect"
|
||||
PKG_REQUIRE_NAME = "@kbn/expect"
|
||||
|
||||
SOURCE_FILES = glob([
|
||||
"expect.js",
|
||||
"expect.js.d.ts",
|
||||
])
|
||||
|
||||
SRCS = SOURCE_FILES
|
||||
|
||||
filegroup(
|
||||
name = "srcs",
|
||||
srcs = SRCS,
|
||||
)
|
||||
|
||||
NPM_MODULE_EXTRA_FILES = [
|
||||
"LICENSE.txt",
|
||||
"package.json",
|
||||
"README.md",
|
||||
]
|
||||
|
||||
js_library(
|
||||
name = PKG_BASE_NAME,
|
||||
srcs = NPM_MODULE_EXTRA_FILES + [
|
||||
":srcs",
|
||||
],
|
||||
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"],
|
||||
)
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"tsBuildInfoFile": "../../build/tsbuildinfo/packages/kbn-expect"
|
||||
"incremental": false,
|
||||
},
|
||||
"include": [
|
||||
"expect.js.d.ts"
|
||||
|
|
Loading…
Reference in a new issue