Migrate from Makefile to justfile

This commit is contained in:
Dave Gallant
2024-03-18 20:45:35 -04:00
parent 54de6a38c8
commit 2902f5735b
3 changed files with 10 additions and 32 deletions

View File

@@ -1,31 +0,0 @@
SHELL := bash
.SHELLFLAGS := -eu -o pipefail -c
.DELETE_ON_ERROR:
MAKEFLAGS += --warn-undefined-variables
MAKEFLAGS += --no-builtin-rules
ifeq ($(origin .RECIPEPREFIX), undefined)
$(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
endif
.RECIPEPREFIX = >
build: clean
> npm ci
> hugo --minify
clean:
> rm -rf public/
## server: run server locally on port 1313 and open in a browser
server:
> hugo server --buildDrafts
## help: Print this help message
help:
> @echo
> @echo "Usage:"
> @echo
> @sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /' | sort
> @echo
.PHONY: help

View File

@@ -94,7 +94,7 @@ Note that you must specify a `TS_AUTHKEY` in the `ts-gitea` service. You can gen
"${TS_CERT_DOMAIN}:443":
{ "Handlers": { "/": { "Proxy": "http://127.0.0.1:3000" } } },
},
"AllowFunnel": { "${TS_CERT_DOMAIN}:443": false },
"AllowFunnel": { "${TS_CERT_DOMAIN}:443": false }
}
```

9
justfile Normal file
View File

@@ -0,0 +1,9 @@
build: clean
npm ci
hugo --minify
clean:
rm -rf public/
server:
hugo server --buildDrafts