Skip to content

Commit

Permalink
fix(tools): fix bash scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
gbtb16 committed Jul 21, 2024
1 parent a705461 commit 46fcb2e
Show file tree
Hide file tree
Showing 16 changed files with 62 additions and 57 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
cd examples/flutter_kiwi
flutter packages get
flutter packages pub run build_runner build --delete-conflicting-outputs
dart format --line-length 160 .
dart format .
- name: Use verify-changed-files to check if any of the above files changed.
uses: tj-actions/verify-changed-files@v19
- name: Run step only when any of the above files change.
Expand All @@ -44,13 +44,13 @@ jobs:
cd packages/kiwi_generator
dart pub get
dart run build_runner build --delete-conflicting-outputs
dart format --line-length 160 .
dart format .
- name: Build & format for dart_kiwi example
run: |
cd examples/dart_kiwi
dart pub get
dart run build_runner build --delete-conflicting-outputs
dart format --line-length 160 .
dart format .
- name: Use verify-changed-files to check if any of the above files changed.
uses: tj-actions/verify-changed-files@v19
- name: Run step only when any of the above files change.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dart_kiwi_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
channel: 'stable'
- run: flutter packages get
- run: flutter analyze
- run: dart format --line-length 160 -o none --set-exit-if-changed .
- run: dart format -o none --set-exit-if-changed .
2 changes: 1 addition & 1 deletion .github/workflows/flutter_kiwi_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
channel: 'stable'
- run: flutter packages get
- run: flutter analyze
- run: dart format --line-length 160 -o none --set-exit-if-changed .
- run: dart format -o none --set-exit-if-changed .
2 changes: 1 addition & 1 deletion .github/workflows/kiwi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ jobs:
sdk: ${{ matrix.sdk }}
- run: dart pub get
- run: dart analyze --fatal-infos --fatal-warnings .
- run: dart format --line-length 160 -o none --set-exit-if-changed .
- run: dart format -o none --set-exit-if-changed .
- run: dart pub run test
2 changes: 1 addition & 1 deletion .github/workflows/kiwi_generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ jobs:
sdk: ${{ matrix.sdk }}
- run: dart pub get
- run: dart analyze --fatal-infos --fatal-warnings .
- run: dart format --line-length 160 -o none --set-exit-if-changed .
- run: dart format -o none --set-exit-if-changed .
- run: dart pub run test
10 changes: 6 additions & 4 deletions examples/dart_kiwi/lib/src/modules/drip_coffee_module.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/dart_kiwi/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ dependency_overrides:
dev_dependencies:
test: ^1.23.1
build_runner: ^2.3.3
kiwi_generator: ^5.0.0
kiwi_generator: ^4.2.0
4 changes: 2 additions & 2 deletions examples/flutter_kiwi/lib/di/test01.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/flutter_kiwi/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dev_dependencies:
flutter_test:
sdk: flutter
build_runner: ^2.3.3
kiwi_generator: ^5.0.0
kiwi_generator: ^4.2.0

flutter:
uses-material-design: true
5 changes: 3 additions & 2 deletions packages/kiwi_generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# 5.0.0
# 4.2.0

Now Kiwi it's a Brazilian package! 🇧🇷 ♥

Thank you ([@vanlooverenkoen](https://github.com/vanlooverenkoen)) for your contribution and trust in our work.
He continued his active and dedicated work on the Kiwi Generator package up to version `4.1.0`.
He continued his active and dedicated work on the Kiwi Generator package up to version `4.2.0`.

- BREAKING: kiwi version has been updated to `5.0.0`.
- refactor: the package structure has been refactored to be in line with the market. ([PR #106](https://github.com/gbtb16/kiwi/pull/106))
Expand All @@ -16,6 +16,7 @@ He continued his active and dedicated work on the Kiwi Generator package up to v
- fix: pub.dev points now sound great (150/150). ([PR #106](https://github.com/gbtb16/kiwi/pull/106))
- fix: dependabot has been updated. ([PR #107](https://github.com/gbtb16/kiwi/pull/107))
- chore: other minimalist changes.
- chore: update `analyzer` dependency to `6.0.0`.

# 4.1.0
### Updated
Expand Down
21 changes: 14 additions & 7 deletions packages/kiwi_generator/example/kiwi_generator_example.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions tools/analyze.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ echo "---------------------------"
cd examples/dart_kiwi
flutter analyze
echo "==========================="
cd ..
cd ../..

echo ""
echo "==========================="
Expand All @@ -23,7 +23,7 @@ echo "---------------------------"
cd examples/flutter_kiwi
flutter analyze
echo "==========================="
cd ..
cd ../..

echo ""
echo "==========================="
Expand All @@ -32,13 +32,12 @@ echo "---------------------------"
cd packages/kiwi
dart analyze --fatal-infos --fatal-warnings .
echo "==========================="
cd ..
cd ../..

echo ""
echo "==========================="
echo "kiwi_generator final package analyze"
echo "---------------------------"
cd packages/kiwi_generator
dart analyze --fatal-infos --fatal-warnings .
echo "==========================="
cd ..
echo "==========================="
13 changes: 6 additions & 7 deletions tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ echo "---------------------------"
cd examples/dart_kiwi
dart run build_runner build --delete-conflicting-outputs
echo "==========================="
cd ..
cd ../..

echo ""
echo "==========================="
echo "flutter_kiwi example package build_runner build"
echo "---------------------------"
cd examples/flutter_kiwi
flutter packages pub run build_runner build --delete-conflicting-outputs
dart run build_runner build --delete-conflicting-outputs
echo "==========================="
cd ..
cd ../..

echo ""
echo "==========================="
Expand All @@ -32,13 +32,12 @@ echo "---------------------------"
cd packages/kiwi
echo "Nothing to generate here"
echo "==========================="
cd ..
cd ../..

echo ""
echo "==========================="
echo "kiwi_generator final package build_runner build"
echo "---------------------------"
cd packages/kiwi_generator
flutter packages pub run build_runner build --delete-conflicting-outputs
echo "==========================="
cd ..
dart run build_runner build --delete-conflicting-outputs
echo "==========================="
15 changes: 7 additions & 8 deletions tools/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,22 @@ fi
echo ""
echo "dart_kiwi example package format lib"
cd examples/dart_kiwi
dart format --line-length 160 -o none --set-exit-if-changed .
cd ..
dart format -o none --set-exit-if-changed .
cd ../..

echo ""
echo "flutter_kiwi example package format lib"
cd examples/flutter_kiwi
dart format --line-length 160 -o none --set-exit-if-changed .
cd ..
dart format -o none --set-exit-if-changed .
cd ../..

echo ""
echo "kiwi final package format lib"
cd packages/kiwi
dart format --line-length 160 -o none --set-exit-if-changed .
cd ..
dart format -o none --set-exit-if-changed .
cd ../..

echo ""
echo "kiwi_generator final package format lib"
cd packages/kiwi_generator
dart format --line-length 160 -o none --set-exit-if-changed .
cd ..
dart format -o none --set-exit-if-changed .
13 changes: 6 additions & 7 deletions tools/packages_get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,23 @@ fi
echo "dart_kiwi example package packages get"
cd examples/dart_kiwi
flutter packages get
cd ..
cd ../..

echo "flutter_kiwi example package packages get"
cd examples/flutter_kiwi
flutter packages get
cd ..
cd ../..

echo "kiwi final package packages get"
cd packages/kiwi
dart pub get
cd ..
cd ../..

echo "kiwi_generator final package packages get"
cd packages/kiwi_generator
dart pub get
cd ..
cd ../..

echo "actions packages get"
cd tools/actions
dart pub get
cd ..
cd tools/kiwi_cli_actions
dart pub get
11 changes: 5 additions & 6 deletions tools/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,21 @@ echo ""
echo "dart_kiwi example package test"
cd examples/dart_kiwi
echo "No tests for dart_kiwi"
cd ..
cd ../..

echo ""
echo "flutter_kiwi example package test"
cd examples/flutter_kiwi
echo "No test for flutter_kiwi"
cd ..
cd ../..

echo ""
echo "kiwi final package test"
cd packages/kiwi
dart pub run test
cd ..
dart test
cd ../..

echo ""
echo "kiwi_generator final package test"
cd packages/kiwi_generator
dart pub run test
cd ..
dart test

0 comments on commit 46fcb2e

Please sign in to comment.