Add .gitignore, updated config.ts, makefile, and npm package file updates

This commit is contained in:
2025-07-03 19:55:41 -07:00
parent 4aa7a85f6b
commit 65e05066ea
5 changed files with 450 additions and 402 deletions

36
Makefile Normal file
View File

@@ -0,0 +1,36 @@
# Makefile for caperren.com
DEV_WEBSITE_CONTENT_PATH := "/home/caperren/obsidian/00002 - Projects/Websites/caperren-com"
.PHONY: \
install \
fix \
astro_upgrade \
clean_dev_website_content \
update_dev_website_content \
build \
dev
default: dev
install:
npm install
fix:
npm audit fix
astro_upgrade:
npx @astrojs/upgrade
clean_dev_website_content:
find src/content -mindepth 1 ! -name 'config.ts' ! -name '.' -exec rm -rvf {} +
update_dev_website_content: clean_dev_website_content
cp -rv $(DEV_WEBSITE_CONTENT_PATH)/* src/content
build: update_dev_website_content
npm run build
dev: update_dev_website_content
npm run dev