Add checks for OpenVidu Angular components and enhance typings watch script

This commit is contained in:
Carlos Santos 2025-10-20 16:48:14 +02:00
parent 2f5bc8b2ee
commit 868e5cb6f8
2 changed files with 17 additions and 0 deletions

14
meet.sh
View File

@ -357,6 +357,20 @@ select_edition() {
# Helper: Add common commands (components, typings, docs)
add_common_dev_commands() {
OV_COMPONENTS_DIR="../openvidu/openvidu-components-angular"
OV_PACKAGE_JSON="$OV_COMPONENTS_DIR/package.json"
# Check if the OpenVidu Angular components directory exists
if [ ! -d "$OV_COMPONENTS_DIR" ] || [ ! -f "$OV_PACKAGE_JSON" ]; then
echo -e "${RED}Error: OpenVidu Angular components not found or incomplete at:${NC} $OV_COMPONENTS_DIR"
echo -e "${YELLOW}Please clone the OpenVidu repository alongside meet to enable development mode.${NC}"
echo
echo -e " ${YELLOW}Run this command:${NC}"
echo -e " git clone https://github.com/OpenVidu/openvidu.git ../openvidu${NC}"
echo
exit 1
fi
# Components watcher
CMD_NAMES+=("components")
CMD_COLORS+=("red")

View File

@ -4,6 +4,9 @@ FLAG_PATH="./meet-ce/typings/dist/typings-ready.flag"
# Remove the flag file if it exists
rm -f $FLAG_PATH
# Create an empty directory for the flag file if it doesn't exist
mkdir -p "$(dirname "$FLAG_PATH")"
echo "Starting typings watch mode..."
echo "Waiting for initial compilation..."