-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
45 lines (36 loc) · 1.06 KB
/
Makefile
File metadata and controls
45 lines (36 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
44
# Linus Dashboard - Minimal Development Commands
.PHONY: help dev build build-watch build-prod lint install
# Default help
help:
@echo "🎯 Linus Dashboard Commands"
@echo ""
@echo " dev Start Home Assistant development server"
@echo " build Build frontend (development)"
@echo " build-watch Build frontend in watch mode"
@echo " build-prod Build frontend (production)"
@echo " lint Run linting and formatting"
@echo " install Install dependencies"
@echo ""
# Start Home Assistant
dev:
@echo "📄 Loading environment..."
@echo "🐍 Activating Python virtual environment..."
@echo "🚀 Starting Home Assistant on http://localhost:8123"
@. ./.env 2>/dev/null || true; \
./ha-env/bin/hass --config ./config
# Build frontend
build:
npm run build
build-watch:
npm run build-dev
build-prod:
npm run build-prod
# Linting
lint:
./ha-env/bin/ruff check . || true
./ha-env/bin/ruff format . || true
npx eslint src/ --fix || true
# Install dependencies
install:
./ha-env/bin/pip install -r requirements.txt
npm install