-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 807 Bytes
/
Makefile
File metadata and controls
31 lines (25 loc) · 807 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
# --- KONFIGURATION ---
SHELL := /bin/bash
START_SCRIPT := ./todo_frontend/start__frontend.sh
.PHONY: help start install build clean
# Standard-Ziel: Hilfe anzeigen
help:
@echo "Verfügbare Befehle:"
@echo " make start - Startet das Frontend (Vite + Tests im Watch-Mode)"
@echo " make install - Installiert npm-Abhängigkeiten in todo_frontend"
@echo " make build - Erstellt den Produktions-Build"
@echo " make clean - Löscht Build-Artefakte und Elm-Stuff"
# Startet das Frontend über dein Shell-Skript
start:
@chmod +x $(START_SCRIPT)
@$(START_SCRIPT)
# Bequemlichkeits-Befehl für die Installation
install:
cd todo_frontend && npm install
# Produktions-Build
build:
cd todo_frontend && npm run build
# Aufräumen
clean:
rm -rf todo_frontend/dist
rm -rf todo_frontend/elm-stuff