forked from deivid11/tide-commander
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
81 lines (66 loc) · 1.77 KB
/
Makefile
File metadata and controls
81 lines (66 loc) · 1.77 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Tide Commander Makefile
# Common commands for development and builds
.PHONY: dev build clean install lint test apk apk-release sync help
# Default target
help:
@echo "Tide Commander - Available commands:"
@echo ""
@echo " Development:"
@echo " make dev - Start development server (client + backend)"
@echo " make dev-client - Start only the client dev server"
@echo " make dev-server - Start only the backend server"
@echo ""
@echo " Build:"
@echo " make build - Build the web application"
@echo " make clean - Clean build artifacts"
@echo " make lint - Run TypeScript type checking"
@echo " make test - Run tests"
@echo ""
@echo " Android:"
@echo " make apk - Build debug APK"
@echo " make apk-release - Build release APK"
@echo " make sync - Sync web assets to Android"
@echo " make android - Full build + open Android Studio"
@echo ""
@echo " Setup:"
@echo " make install - Install dependencies"
@echo " make setup - Run initial setup"
# Development
dev:
npm run dev
dev-client:
npm run dev:client
dev-server:
npm run dev:server
# Build
build:
npm run build
clean:
rm -rf dist
rm -rf android/app/build
rm -rf node_modules/.vite
lint:
npm run lint
test:
npm run test
# Android
sync:
npm run build
npx cap sync android
apk: sync
cd android && ./gradlew assembleDebug
@echo ""
@echo "APK built successfully!"
@echo "Location: android/app/build/outputs/apk/debug/app-debug.apk"
apk-release: sync
cd android && ./gradlew assembleRelease
@echo ""
@echo "Release APK built!"
@echo "Location: android/app/build/outputs/apk/release/app-release-unsigned.apk"
android:
npm run android
# Setup
install:
npm install
setup:
npm run setup