Optimize template and development

This commit is contained in:
L3D 2023-03-07 22:10:20 +01:00
parent 3815773c05
commit e3638d0316
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 23 additions and 9 deletions

View file

@ -33,6 +33,14 @@ server:
lektor server $(LEKTOR_SERVER_FLAGS) $(LEKTOR_PLUGIN_FLAGS) lektor server $(LEKTOR_SERVER_FLAGS) $(LEKTOR_PLUGIN_FLAGS)
fi fi
dev:
lektor clean --yes
if python3 -m lektor --version 2>/dev/null; then
python3 -m lektor server $(LEKTOR_SERVER_FLAGS) $(LEKTOR_PLUGIN_FLAGS)
else
lektor server $(LEKTOR_SERVER_FLAGS) $(LEKTOR_PLUGIN_FLAGS)
fi
deploy: deploy:
lektor clean --yes lektor clean --yes
lektor plugin flush-cache lektor plugin flush-cache

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB