update makefile

* use test to get hints
* change serve option order
* servedraft builds all content

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
remotes/1691128968110617338/master
Toshaan Bharvani 2 years ago
parent fe38cfd450
commit 58be14cb64

@ -28,7 +28,7 @@ build-staging:

.PHONY: test
test: clean
$(HUGO) --environment=development --minify
$(HUGO) --environment=development --minify --templateMetrics --templateMetricsHints --memstats hug_mem_log

.PHONY: draft
draft:
@ -40,11 +40,11 @@ debug:

.PHONY: serve
serve:
$(HUGO) server --environment=development --port 1314 --noHTTPCache --disableFastRender --watch
$(HUGO) server --environment=development --port 1314 --watch --noHTTPCache --disableFastRender

.PHONY: servedraft
servedraft:
$(HUGO) server --environment=development --buildFuture --buildExpired --noHTTPCache --disableFastRender --watch
$(HUGO) server --environment=development --port 1314 --watch --noHTTPCache --disableFastRender --buildDrafts --buildFuture --buildExpired

.PHONY: clean
clean:

Loading…
Cancel
Save