mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-25 12:06:12 -05:00
[ci] Update CI jobs to build and check webui
This commit is contained in:
@@ -191,8 +191,24 @@ web-serve: node_modules
|
||||
web-update:
|
||||
$(if $(NPM),$(NPM) update)
|
||||
|
||||
web-check:
|
||||
@echo "Verifying that all source files in 'src' and 'public' are listed in WEB_FILES ..."
|
||||
@unexpected_files=0; \
|
||||
for file in $$(find public src -type f); do \
|
||||
if ! echo " $(WEB_FILES) " | grep -q " $$file "; then \
|
||||
echo "Unknown web interface source file found: $$file"; \
|
||||
unexpected_files=1; \
|
||||
fi; \
|
||||
done; \
|
||||
if [ $$unexpected_files -eq 0 ]; then \
|
||||
echo "All source files listed in WEB_FILES."; \
|
||||
else \
|
||||
echo "FAILURE: Unknown web interface source files found, please add them to WEB_FILES."; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
web-lint: node_modules
|
||||
$(if $(NPM),$(NPM) run lint)
|
||||
$(if $(NPM),$(NPM) run lint --no-fix)
|
||||
|
||||
web-format: node_modules
|
||||
$(if $(NPM),$(NPM) run format)
|
||||
|
||||
Reference in New Issue
Block a user