-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (38 loc) · 1.19 KB
/
Makefile
File metadata and controls
49 lines (38 loc) · 1.19 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
44
45
46
47
48
49
# Makefile for the BootCode Community Hub frontend application
# Use .PHONY to declare targets that are not actual files.
# This prevents conflicts if a file with the same name as a target exists.
.PHONY: help install dev build serve lint format test
# Default command to run when 'make' is called without arguments.
default: help
help:
@echo "Available commands:"
@echo " install - Install project dependencies from package.json"
@echo " dev - Start the local development server (http://localhost:5173)"
@echo " run - Alias for 'dev'"
@echo " build - Build the application for production"
@echo " serve - Serve the production build locally"
@echo " lint - Run the ESLint linter"
@echo " format - Format code with Prettier"
@echo " test - Run the test suite with Vitest"
install:
@echo "Installing dependencies..."
npm install
# Start the development server
dev:
npm run dev
# 'run' is a common command, so we add it as an alias for 'dev'.
run: dev
# Build the project for production
build:
npm run build
# Preview the production build
serve:
npm run serve
# Lint and format code
lint:
npm run lint
format:
npm run format
# Run tests
test:
npm run test