-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 811 Bytes
/
Makefile
File metadata and controls
38 lines (28 loc) · 811 Bytes
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
BUN = $(HOME)/.bun/bin/bun
BUNX = $(BUN) x
.PHONY: dev install push lint lint-js lint-html lint-css lint-fix storage
dev: install
$(BUN) run dev
push:
$(BUNX) supabase db push
install:
test -f $(BUN) || curl -fsSL https://bun.sh/install | sh
$(BUN) install
lint: lint-js lint-html lint-css
@echo "All linting complete!"
lint-js:
@echo "==> Running ESLint (JavaScript)..."
$(BUNX) eslint js/
lint-html:
@echo "==> Running HTMLHint..."
$(BUNX) htmlhint *.html --format compact
lint-css:
@echo "==> Running Stylelint (CSS)..."
$(BUNX) stylelint "css/**/*.css"
lint-fix:
@echo "==> Auto-fixing ESLint issues..."
$(BUNX) eslint js/ --fix
@echo "==> Auto-fixing Stylelint issues..."
$(BUNX) stylelint "css/**/*.css" --fix
storage:
$(BUNX) supabase storage ls ss:///resumes --experimental -r