Update development tasks

This commit is contained in:
Gabriel Arazas 2023-02-25 15:24:08 +08:00
parent e1f2ea4a1e
commit 0ea26d7586
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -7,10 +7,10 @@ build-openring:
./bin/openring-create --input assets/templates/openring-input.html --output layouts/partials/openring.html ./bin/openring-create --input assets/templates/openring-input.html --output layouts/partials/openring.html
.PHONY: serve .PHONY: serve
serve: build-openring serve:
ls assets/templates/openring-input.html | LAST_COMMIT_DATE=$(git log -1 --format=%cI) hugo serve --buildFuture --verboseLog hugo serve --buildFuture --verboseLog --destination public
.PHONY: update .PHONY: update
update: update:
curl --silent --location https://api.github.com/repos/foo-dogsquared/hugo-theme-more-contentful/commits | jq '.[0].sha' --raw-output | xargs --replace='{}' hugo mod get -u "github.com/foo-dogsquared/hugo-theme-more-contentful@{}" && hugo mod tidy curl --silent --location https://api.github.com/repos/foo-dogsquared/hugo-theme-more-contentful/commits | jq '.[0].sha' --raw-output | xargs --replace='{}' hugo mod get -u "github.com/foo-dogsquared/hugo-theme-more-contentful@{}" && hugo mod tidy
curl --silent --location https://api.github.com/repos/foo-dogsquared/hugo-web-feeds/commits | jq '.[0].sha' --raw-output | xargs --replace='{}' hugo mod get -u "github.com/foo-dogsquared/hugo-web-feeds@{}" && hugo mod tidy curl --silent --location https://api.github.com/repos/foo-dogsquared/hugo-mod-web-feeds/commits | jq '.[0].sha' --raw-output | xargs --replace='{}' hugo mod get -u "github.com/foo-dogsquared/hugo-mod-web-feeds@{}" && hugo mod tidy