Show warning when binfiles aren't available

This commit is contained in:
Rico Sta. Cruz 2019-03-27 19:14:34 +08:00
parent 7f7e899014
commit e05517f9f7
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 11 additions and 3 deletions

View File

@ -13,16 +13,24 @@ _site:
critical: _site
node _support/critical.js
ensure-bin:
@if [ ! -d $(npmbin) ]; then \
echo "---"; \
echo "Error: $(npmbin) not found, you may need to run '[docker-compose run --rm web] yarn install'."; \
echo "---"; \
exit 1; \
fi
# Starts development server
dev:
dev: ensure-bin
$(npmbin)/concurrently -k -p command -c "blue,green" \
"make dev-webpack" \
"make dev-jekyll"
dev-webpack:
dev-webpack: ensure-bin
$(npmbin)/webpack --watch --colors -p
dev-jekyll:
dev-jekyll: ensure-bin
if [ -f _site ]; then \
bundle exec jekyll serve --safe --trace --drafts --watch --incremental --host $(HOST) --port $(PORT); \
else \