Browse Source

l337

exp-with-scrum
parent
commit
8081c2c1f8
Signed by: yogsototh GPG Key ID: 7B19A4C650D59646
  1. 3
      Makefile
  2. 1
      engine/auto-build.sh
  3. 8
      engine/dev.sh

3
Makefile

@ -84,7 +84,7 @@ ALL += index
ENV_VARS := ./engine/envvars.sh
NIX_FILES := ./shell.nix $(shell find nix -type f)
$(ENV_VARS): $(NIX_FILES)
echo "export PATH=\"${PATH}\"" >> ./engine/envvars.sh
@echo "export PATH=\"${PATH}\"" >> ./engine/envvars.sh
ALL += ./engine/envvars.sh
# RSS
@ -176,5 +176,6 @@ deploy: $(ALL)
.PHONY: clean
clean:
-[ -f $(ENV_VARS) ] && rm $(ENV_VARS)
-[ ! -z "$(DST_DIR)" ] && rm -rf $(DST_DIR)/*
-[ ! -z "$(CACHE_DIR)" ] && rm -rf $(CACHE_DIR)/*

1
engine/auto-build.sh

@ -1,5 +1,6 @@
#!/usr/bin/env zsh
cd "$(git rev-parse --show-toplevel)" || exit 1
[[ -f ./engine/envvars.sh ]] || make ./engine/envvars.sh
source ./engine/envvars.sh
direnv reload
./engine/build.sh

8
engine/dev.sh

@ -1,6 +1,4 @@
#!/bin/bash
set -e
tmux \
new-session './engine/serve.sh' \; \
split-window './engine/auto-build.sh' \;
#!/usr/bin/env zsh
tee >(lorri watch) >(./engine/serve.sh) >(./engine/auto-build.sh) >(sleep 1 && open 'http://127.0.0.1:3000')

Loading…
Cancel
Save