-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (35 loc) · 1.06 KB
/
Makefile
File metadata and controls
43 lines (35 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
SHELL := /bin/bash
NVM := . ~/.nvm/nvm.sh && nvm use 22 &&
.PHONY: dev build preview sync install clean cf-build help
.DEFAULT_GOAL := help
# Copy needed assets from wavekat-brand submodule → public/
sync:
$(NVM) npm run sync
# Start dev server
dev:
$(NVM) npm run dev
# Build for production → dist/
build:
$(NVM) npm run build
# Preview production build locally
preview: build
$(NVM) npm run preview
# Install dependencies
install:
$(NVM) npm install
# Simulate Cloudflare Pages build locally (no nvm, plain npm — mirrors CI)
cf-build:
npm run cf:build
# Remove build artifacts and synced assets
clean:
rm -rf dist/ .astro/ public/logos/ public/og.png
help:
@echo "Usage: make <target>"
@echo ""
@echo " dev Start dev server"
@echo " build Build for production → dist/"
@echo " preview Build and preview locally"
@echo " sync Copy assets from wavekat-brand submodule"
@echo " install Install dependencies"
@echo " cf-build Simulate Cloudflare Pages build (no nvm)"
@echo " clean Remove dist/, .astro/, public/logos/"