homeassistant-config/make_custom_frontend.sh

27 lines
553 B
Bash
Raw Normal View History

#!/bin/bash
# ------ Room Glance Card -------------------------
cd custom_frontend_sources/room-glance-card
if [ ! -d "node_modules" ]; then
echo "Installing node_modules"
npm install
fi
npm run build
cp dist/room-glance-card.js ../../www/custom_ui
cd ../..
# ----- State Card Custom Cover --------------------
cd custom_frontend_sources/state-card-custom-cover
if [ ! -d "node_modules" ]; then
echo "Installing node_modules"
npm install
fi
npm run build
cp dist/state-card-custom-cover.js ../../www/custom_ui
cd ../..