fix(web): proper location for testing resource dupe

This commit is contained in:
jahorton 2020-04-20 12:14:21 +07:00
parent 251257b7f3
commit 8ab3da6afd
2 changed files with 4 additions and 3 deletions

View file

@ -60,7 +60,7 @@ fi
if [ $BUILD_LMLAYER = true ]; then
FLAGS="-no-lerna"
# Ensure that the LMLayer compiles properly, readying the build product for comsumption by KMW.
cd ../../../../predictive-text/
echo ""
@ -68,8 +68,6 @@ if [ $BUILD_LMLAYER = true ]; then
./build.sh $FLAGS || fail "Failed to compile the language modeling layer module."
cd ../core/web/input-processor/src
# TODO: Move this back to KMW's main build script. Consider it part of the dependency update.
#echo "Copying ${PREDICTIVE_TEXT_SOURCE} to ${PREDICTIVE_TEXT_OUTPUT}"
#cp "${PREDICTIVE_TEXT_SOURCE}" "${PREDICTIVE_TEXT_OUTPUT}" || fail "Failed to copy predictive text model"
echo "Language Modeling layer compilation successful."
echo ""
fi

View file

@ -302,6 +302,9 @@ readonly DO_MINIFY
if [ $FETCH_DEPS = true ]; then
# Ensure the dependencies are downloaded.
verify_npm_setup
echo "Copying testing resource ${PREDICTIVE_TEXT_SOURCE} to ${PREDICTIVE_TEXT_OUTPUT}"
cp "${PREDICTIVE_TEXT_SOURCE}" "${PREDICTIVE_TEXT_OUTPUT}" || fail "Failed to copy predictive text model"
fi
if [ $DO_MINIFY = true ]; then