Skip to content

Commit

Permalink
Move RNTester Buck library to GitHub (#31435)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #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: MichaReiser

Differential Revision: D27942209

fbshipit-source-id: 6b948eaf184c2a775d7cc502fa1fa7512e0f28af
  • Loading branch information
motiz88 authored and facebook-github-bot committed Jul 30, 2021
1 parent 8066bc9 commit c2f6310
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
28 changes: 28 additions & 0 deletions packages/rn-tester/BUCK
Original file line number Diff line number Diff line change
@@ -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(
Expand All @@ -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",
],
)
4 changes: 4 additions & 0 deletions tools/build_defs/oss/metro_defs.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# metro-buck integration
def rn_library(**kwargs):
# Noop for now
pass

0 comments on commit c2f6310

Please sign in to comment.