update makefile

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

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

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


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


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


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


.PHONY: servedraft .PHONY: servedraft
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 .PHONY: clean
clean: clean:

Loading…
Cancel
Save