Skip to content

Commit

Permalink
feat: add makefile to automate routine
Browse files Browse the repository at this point in the history
  • Loading branch information
dionesxxx committed Jun 5, 2023
1 parent 968ced3 commit 5a09e96
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
PACKAGES := $(wildcard packages/*)
FEATURES := $(wildcard lib/)

get:
flutter pub get
for feature in $(FEATURES); do \
cd $${feature} ; \
echo "Updating dependencies on $${feature}" ; \
flutter pub get ; \
cd ../../../ ; \
done
for package in $(PACKAGES); do \
cd $${package} ; \
echo "Updating dependencies on $${package}" ; \
flutter pub get ; \
cd ../../ ; \
done

testing:
flutter test
for feature in $(FEATURES); do \
cd $${feature} ; \
echo "Running test on $${feature}" ; \
flutter test ; \
cd ../../../ ; \
done
for package in $(PACKAGES); do \
cd $${package} ; \
echo "Running test on $${package}" ; \
flutter test ; \
cd ../../ ; \
done

0 comments on commit 5a09e96

Please sign in to comment.