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

6
.gitignore vendored
View File

@@ -1,3 +1,9 @@
# Ignore everything under src/content, as they are dynamically added from obsidian
src/content/*
# Do not ignore config.ts in src/content since that necessary to import the dynamic content
!src/content/config.ts
# build output # build output
dist/ dist/

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

804
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -9,7 +9,7 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"astro": "^5.4.2", "astro": "^5.11.0",
"astro-rehype-relative-markdown-links": "^0.18.1" "astro-rehype-relative-markdown-links": "^0.18.1"
} }
} }

View File

@@ -6,7 +6,7 @@ import { glob } from 'astro/loaders';
// 3. Define your collection(s) // 3. Define your collection(s)
const experiences = defineCollection({ const experiences = defineCollection({
loader: glob({ pattern: "*.md", base: "src/content/experience" }) loader: glob({ pattern: "*.md", base: "src/content/experiences" })
}) })
const projects = defineCollection({ const projects = defineCollection({