Hello Just

Published: 2024-02-12T14:23:06+01:00

The capsule build system now uses the Just tool to make it easier to use gempost.

Gempost (GitHub) Just (GitHub)

The entire current content of the file is below. I will expand this over time to enable templating of static pages, and other things.

@ensure:
	which gempost >/dev/null 2>&1  || cargo install gempost
	which tera >/dev/null 2>&1 || cargo install tera-cli

build: ensure
	gempost build -c ./capsule-main.yaml
	gempost build -c ./astroponic-garden.yaml

post TITLE: ensure
	gempost new -c capsule-main.yaml -t "{{TITLE}}" "{{ lowercase(replace(TITLE, ' ', '-')) }}"

plant TITLE: ensure
	gempost new -c astroponic-garden.yaml -t "{{TITLE}}" "{{ lowercase(replace(TITLE, ' ', '-')) }}"

deploy MESSAGE: build
	git add .
	git commit -m "{{ MESSAGE }}"

Filed under: capsule

License: CC-BY-SA-4.0.

Written by: @[email protected]