12 lines
349 B
Bash
12 lines
349 B
Bash
|
|
flutter packages pub run build_runner build --delete-conflicting-outputs --verbose
|
||
|
|
exportPath="lib/src/models/export.dart"
|
||
|
|
rm -f "$exportPath"
|
||
|
|
for file in lib/src/models/{*,**/}*.dart; do
|
||
|
|
case $file in
|
||
|
|
export.dart|*.g.dart) continue ;;
|
||
|
|
*)
|
||
|
|
genPath=${file##"lib/src/models/"}
|
||
|
|
echo "export '$genPath';" >> "$exportPath"
|
||
|
|
;;
|
||
|
|
esac
|
||
|
|
done
|