From 4567ca7101f045352250842e2ce63e37873d188c Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sun, 5 Nov 2023 19:51:51 -0600 Subject: [PATCH] quick script for local builds --- .gitignore | 12 +++++++----- build.sh | 7 +++++++ 2 files changed, 14 insertions(+), 5 deletions(-) create mode 100755 build.sh diff --git a/.gitignore b/.gitignore index b5a4a08..e49b424 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ .hugo_build.lock -node_modules/ -package-lock.json -package.json -public/ -resources/ +/node_modules/ +/package-lock.json +/package.json +/public/ +/resources/ +/.env + diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..7bfc5ad --- /dev/null +++ b/build.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Quick script to run local builds +source .env +hugo --minify --environment local +npx torchlight +python3 -m http.server --directory public 1313 +