Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Makefiles to streamline development #357

Merged
merged 2 commits into from
Sep 17, 2022
Merged

Conversation

techouse
Copy link
Collaborator

Since dart CLI commands can be cumbersome I wrote a few Makefiles to make stuff easier 😇

To inspect each of their targets simply run

make help

and you'll be greeted by a list of options, e.g.

cd chopper
make help

will print

Target               Description
------               -----------
analyze              Analyze the project's Dart code.
check_format         Check the formatting of one or more Dart files.
check_outdated       Check which of the project's packages are outdated.
check_style          Analyze the project's Dart code and check the formatting one or more Dart files.
code_gen             Run the build system for Dart code generation and modular compilation.
code_gen_watcher     Run the build system for Dart code generation and modular compilation as a watcher.
format               Format one or more Dart files.
install              Install all the project's packages
show_test_coverage   Run Dart unit tests for the current project and show the coverage.
sure                 Analyze the project's Dart code, check the formatting one or more Dart files and run unit tests for the current project.
tests                Run Dart unit and widget tests for the current project.
upgrade              Upgrade all the project's packages.

All of these will run fine on macOS and Linux, not sure about Windows 🙈

@techouse techouse added the enhancement New feature or request label Sep 14, 2022
@techouse techouse requested a review from stewemetal September 14, 2022 20:03
@techouse
Copy link
Collaborator Author

techouse commented Sep 14, 2022

Looks like upgrading code_builder to 4.3.0 in the unit tests triggered another deprecation warning. 🚨

I wonder if we should include the pubspec.lock to avoid these scenarios.

@JEuler / @stewemetal your thoughts?

@techouse
Copy link
Collaborator Author

This needs #358 to pass the tests.

@techouse
Copy link
Collaborator Author

All tests pass 🚀

@JEuler JEuler merged commit 35fdf8f into lejard-h:develop Sep 17, 2022
@techouse techouse deleted the makefile branch September 17, 2022 08:05
JEuler pushed a commit that referenced this pull request Oct 8, 2022
JEuler added a commit that referenced this pull request Oct 15, 2022
* Fix Header Option Casting (#260)

Co-authored-by: Ivan Terekhin <i.terhin@gmail.com>

* Fix for #259 (#263)

* 4.0.1 fixes (#264)

* analyzer dependency upgraded (#296)

* fix(generator): fix PartValueFile value not nullable if arg is (#288) (#293)

* Chopper generator release 4.0.2 (#297)

* fix: fix this.body cast of null value when response body is null (#291) (#292)

* Interpolation fixes (#275)

* encodeQueryComponent now encodeComponent (#278)

* Prevent double call on token refreshment (#276)

* Fixes for #309 #308 (#310)

* Remove new keyword from interceptors.md (#312)

* Analyzer upgrade (#320)

Co-authored-by: István Juhos <stewemetal@gmail.com>

* Add unnecessary_brace_in_string_interps to lint ignores (#317)

* Extend pragma to quiet the linter (#318)

Co-authored-by: Ivan Terekhin <i.terhin@gmail.com>

* Fix converter getting called twice if using an authenticator with a JsonConverter on the request (#324)

* migrate example to nullsafety (#331)

* Resolve problem in main_json_serializable example (#328)

* Add @FiledMap @PartMap @PartFileMap (#335)

Co-authored-by: Meysam Karimi <mysmartapply.it4@gmail.com>

* Upgrade of analyzer (#340)

* Fix nullable QueryMap fails to compile (#344)

* Change return type of decodeJson to FutureOr in order to be able to support compute() (#345)

* Migrate from pedantic to lints ^2.0.0 with lints/recommended.yaml (#349)

* Version bumped for release (#352)

* Revert analyzer to ^4.1.0 and silence linters for Element.enclosingElement (#354)

* [chopper_generator] Update analyzer to ^4.4.0 and code_builde to ^4.3.0 and migrate deprecated code (#358)

* Add Makefiles to streamline development (#357)

* Add Bug Report Github issue template (#359)

* [chopper_generator] Add types to the generated variables (#360)

* Provide an example using an Isolate Worker Pool with Squadron (#361)

* mapToQuery changes (#364)

* Version bumped / changelog update (#367)

* Request extends http.BaseRequest (#370)

* Exclude null query vars by default and add new @method annotation includeNullQueryVars (#372)

* 5.1.0 (dev) (#373)

Co-authored-by: Ivan Terekhin <231950+JEuler@users.noreply.github.com>

Co-authored-by: Youssef Raafat <youssefraafatnasry@gmail.com>
Co-authored-by: luis901101 <luis901101@gmail.com>
Co-authored-by: melvspace <ratealt@gmail.com>
Co-authored-by: Michal Šrůtek <35694712+michalsrutek@users.noreply.github.com>
Co-authored-by: István Juhos <stewemetal@gmail.com>
Co-authored-by: Andre <andre.lipke@gmail.com>
Co-authored-by: John Wimer <john@wimer.org>
Co-authored-by: Max Röhrl <max.roehrl11@gmail.com>
Co-authored-by: ipcjs <gipcjs@gmail.com>
Co-authored-by: ibadin <exbatek@gmail.com>
Co-authored-by: Meysam Karimi <31154534+meysam1717@users.noreply.github.com>
Co-authored-by: Meysam Karimi <mysmartapply.it4@gmail.com>
Co-authored-by: Klemen Tusar <techouse@gmail.com>
Co-authored-by: Klemen Tusar <k.tusar@cmcmarkets.com>
Co-authored-by: Ivan Terekhin <231950+JEuler@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants