554d04b01c
* Add combobox to Vue playground * Update input props * Wire up input event for changes This fires changes whenever you type, not just on blur * Fix playground * Don't fire input event when pressing escape The input event is only supposed to fire when the .value of the input changes. Pressing escape doesn't change the value of the input directly so it shouldn't fire. * Add latest active option render prop * Add missing active option props to Vue version * cleanup * Move test * Fix error * Add latest active option to Vue version * Tweak active option to not re-render * Remove refocusing on outside mousedown * Update tests * Forward refs on combobox to children * Cleanup code a bit * Fix lint problems on commit * Fix typescript issues * Update changelog
36 lines
777 B
Bash
Executable File
36 lines
777 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
ROOT_DIR="$(git rev-parse --show-toplevel)/"
|
|
TARGET_DIR="$(pwd)"
|
|
RELATIVE_TARGET_DIR="${TARGET_DIR/$ROOT_DIR/}"
|
|
|
|
# INFO: This script is always run from the root of the repository. If we execute this script from a
|
|
# package then the filters (in this case a path to $RELATIVE_TARGET_DIR) will be applied.
|
|
|
|
pushd $ROOT_DIR > /dev/null
|
|
|
|
prettierArgs=()
|
|
|
|
if ! [ -z "$CI" ]; then
|
|
prettierArgs+=("--check")
|
|
else
|
|
prettierArgs+=("--write")
|
|
fi
|
|
|
|
# Add default arguments
|
|
prettierArgs+=('--ignore-unknown')
|
|
|
|
# Passthrough arguments and flags
|
|
prettierArgs+=($@)
|
|
|
|
# Ensure that a path is passed, otherwise default to the current directory
|
|
if [ -z "$@" ]; then
|
|
prettierArgs+=("$RELATIVE_TARGET_DIR")
|
|
fi
|
|
|
|
# Execute
|
|
yarn prettier "${prettierArgs[@]}"
|
|
|
|
popd > /dev/null
|