mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
2a634f452c
Summary: This moves the test script that generates **all outputs using all generators** to a dedicated "generate-all" CLI. This allows us to use it via Buck, at FB and OSS. Also renamed the target to be more specific: "rn_codegen" => "generate_all_from_schema" Changelog: [Internal] Reviewed By: hramos Differential Revision: D24513995 fbshipit-source-id: 8435d3d065718eb1309c1c61fe28fb592787311a
16 lines
418 B
Bash
Executable File
16 lines
418 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
# Note: To be invoked by Buck sh_binary() in OSS environment.
|
|
# DO NOT USE outside of Buck!
|
|
|
|
set -e
|
|
set -u
|
|
|
|
pushd "$BUCK_DEFAULT_RUNTIME_RESOURCES" >/dev/null
|
|
node "build/lib/cli/generators/generate-all.js" "$@"
|
|
popd >/dev/null
|