mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Move RNTester Buck library to GitHub (#31435)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/31435 Moves the Facebook-internal Buck target definition for RNTester closer to the actual source files. This does not affect how RNTester is built in open source. Changelog: [Internal] Reviewed By: GijsWeterings Differential Revision: D27942209 fbshipit-source-id: 66c970a5464a9329597d155ceeca78fb7f4834e8
This commit is contained in:
committed by
Facebook GitHub Bot
parent
809fd7eab2
commit
4f2c6d02af
@@ -1,3 +1,4 @@
|
||||
load("@fbsource//tools/build_defs/oss:metro_defs.bzl", "rn_library")
|
||||
load("@fbsource//tools/build_defs/third_party:yarn_defs.bzl", "yarn_workspace")
|
||||
|
||||
yarn_workspace(
|
||||
@@ -21,3 +22,30 @@ yarn_workspace(
|
||||
),
|
||||
visibility = ["PUBLIC"],
|
||||
)
|
||||
|
||||
rn_library(
|
||||
name = "rn-tester",
|
||||
srcs = glob(
|
||||
[
|
||||
"js/**/*",
|
||||
"NativeModuleExample/**/*",
|
||||
"RCTTest/**/*",
|
||||
],
|
||||
exclude = [
|
||||
"**/__*__/**",
|
||||
"**/*.md",
|
||||
"js/examples/WebSocket/http_test_server.js",
|
||||
"js/examples/WebSocket/websocket_test_server.js",
|
||||
],
|
||||
),
|
||||
labels = ["supermodule:xplat/default/public.react_native.playground"],
|
||||
skip_processors = True,
|
||||
visibility = ["PUBLIC"],
|
||||
deps = [
|
||||
"//xplat/js:node_modules__nullthrows",
|
||||
"//xplat/js:react-native",
|
||||
"//xplat/js/RKJSModules/Libraries/Core:Core",
|
||||
"//xplat/js/RKJSModules/vendor/react:react",
|
||||
"//xplat/js/react-native-github/packages/assets:assets",
|
||||
],
|
||||
)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# metro-buck integration
|
||||
def rn_library(**kwargs):
|
||||
# Noop for now
|
||||
pass
|
||||
Reference in New Issue
Block a user