mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
f2ba978cad
Summary: The Gradle codegen integration requires the JS CLI to be first built via `yarn run build`. This commit puts that logic in a `build.sh` script, then defines a Gradle task to build it. Changelog: [Internal] Reviewed By: hramos Differential Revision: D24556992 fbshipit-source-id: 7092de7c1126edc157b122f4b2243e55f7188846
20 lines
467 B
Bash
Executable File
20 lines
467 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.
|
|
|
|
# This script assumes yarn is already installed.
|
|
|
|
THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
|
|
|
|
set -e
|
|
set -u
|
|
|
|
pushd "$THIS_DIR/../.." >/dev/null
|
|
|
|
yarn install 2> >(grep -v '^warning' 1>&2)
|
|
yarn run build
|
|
|
|
popd >/dev/null
|