-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (43 loc) · 1.02 KB
/
Makefile
File metadata and controls
54 lines (43 loc) · 1.02 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
50
51
52
53
54
# Code Crispies - Interactive CSS Learning Platform
.PHONY: help dev build test test-watch test-coverage format clean install deploy
# Default port
PORT = 1234
help:
@echo "Code Crispies - Development Commands"
@echo ""
@echo "Development:"
@echo " make dev - Start dev server (port $(PORT))"
@echo " make build - Production build to dist/"
@echo ""
@echo "Testing:"
@echo " make test - Run tests once"
@echo " make test-watch - Run tests in watch mode"
@echo " make test-coverage - Run tests with coverage"
@echo ""
@echo "Other:"
@echo " make format - Format all source files"
@echo " make clean - Remove build artifacts"
@echo " make install - Install dependencies"
# Development
dev:
npm start
# Build
build:
npm run build
# Testing
test:
npm run test
test-watch:
npm run test.watch
test-coverage:
npm run test.coverage
# Formatting
format:
npm run format
npm run format.lessons
# Clean
clean:
rm -rf dist/ node_modules/.vite/
# Install
install:
npm install