-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
74 lines (63 loc) · 1.41 KB
/
makefile
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
PACKAGES := $(wildcard packages/*)
print:
for package in $(PACKAGES); do \
echo $${package} ; \
done
pods-clean:
rm -Rf ios/Pods ; \
rm -Rf ios/.symlinks ; \
rm -Rf ios/Flutter/Flutter.framework ; \
rm -Rf ios/Flutter/Flutter.podspec ; \
rm ios/Podfile ; \
rm ios/Podfile.lock ; \
get:
flutter pub get
for package in $(PACKAGES); do \
cd $${package} ; \
echo "Updating dependencies on $${package}" ; \
flutter pub get ; \
cd ../../ ; \
done
upgrade:
flutter pub upgrade
for package in $(PACKAGES); do \
cd $${package} ; \
echo "Updating dependencies on $${package}" ; \
flutter pub upgrade ; \
cd ../../ ; \
done
lint:
flutter analyze
format:
flutter format --set-exit-if-changed .
testing:
flutter test
for package in $(PACKAGES); do \
cd $${package} ; \
echo "Running test on $${package}" ; \
flutter test ; \
cd ../../ ; \
done
test-coverage:
flutter test --coverage
for package in $(PACKAGES); do \
cd $${package} ; \
echo "Running test on $${package}" ; \
flutter test --coverage ; \
cd ../../ ; \
done
clean:
flutter clean
for package in $(PACKAGES); do \
cd $${package} ; \
echo "Running clean on $${package}" ; \
flutter clean ; \
cd ../../ ; \
done
build-runner:
for package in $(PACKAGES); do \
cd $${package} ; \
echo "Running build-runner on $${package}" ; \
flutter pub run build_runner build --delete-conflicting-outputs ; \
cd ../../ ; \
done