From e24dd6d630cf558c616c1252bacfff6d343b4194 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 14 May 2022 20:42:43 -0600 Subject: Import posts in dev-shell target --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f5eadc0..94eafeb 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,11 @@ test: srv.dev-shell: $$(nix-build --no-out-link -A pkgs.bash)/bin/bash srv-dev-env.sh \ - --command "cd srv/src; return" + --command " \ + cd srv/src; \ + go run cmd/import-posts/main.go ../../static/src/_posts/*; \ + return; \ + " srv.shell: nix-shell -A srv.shellWithBuild --arg baseConfig '(import ${CONFIG})' \ -- cgit v1.2.3