mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: This diff adds a new `js1` script `js1 build viewconfigs` which will generate the view configs for generated components in xplat/js Note that the view configs are not currently valid so I'm not checking them in or adding them to a test, that work will follow Reviewed By: TheSavior Differential Revision: D15239656 fbshipit-source-id: d15776f36a7d7684f50beafd783bccb02352afc0
16 lines
407 B
Bash
Executable File
16 lines
407 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# set -euo pipefail
|
|
|
|
set -e
|
|
set -u
|
|
|
|
THIS_DIR=$(cd -P "$(dirname "$(readlink "${BASH_SOURCE[0]}" || echo "${BASH_SOURCE[0]}")")" && pwd)
|
|
|
|
FILES=$(find "$JS_DIR/" -name "*Schema.js" -print -type f)
|
|
|
|
# shellcheck source=xplat/js/env-utils/setup_env_vars.sh
|
|
source "$THIS_DIR/../../../../env-utils/setup_env_vars.sh"
|
|
|
|
exec "$FLOW_NODE_BINARY" "$THIS_DIR/generate-view-configs-cli.js" "$@" "$FILES"
|