-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
41 lines (34 loc) · 864 Bytes
/
Copy pathmakefile
File metadata and controls
41 lines (34 loc) · 864 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
32
33
34
35
36
37
38
39
40
41
BASE_HREF = '/'
GITHUB_REPO := https://github.com/vchib1/vchib1.github.io.git
clean:
@echo "Cleaning up..."
flutter clean
@echo "Getting Packages..."
flutter pub get
@echo "Success..."
build:
@echo "Cleaning up..."
flutter clean
@echo "Getting Packages..."
flutter pub get
@echo "Building Web..."
flutter build web --wasm
deploy:
make clean
@echo "Building Web..."
flutter build web --base-href $(BASE_HREF) --release
@echo "Deploying Web to Repository..."
cd build/web && \
git init && \
git add . && \
git commit -m "$(msg)" && \
git branch -m main && \
git remote add origin $(GITHUB_REPO) && \
git push -f origin main
cd ../..
@echo "Deployment Success :)"
host:
make clean
flutter run -d web-server --web-port 8080 --web-hostname 0.0.0.0 --profile
@echo "Web server running on http://localhost:8080"
.phony: host clean deploy