From b850a22ef5a895bf5040c92cc4b2e6449d65ffc7 Mon Sep 17 00:00:00 2001 From: nwithan8 Date: Thu, 21 Dec 2023 23:34:41 -0700 Subject: [PATCH] - Add more dart shortcuts to Makefile --- Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/Makefile b/Makefile index 76e0f3e..f7347bf 100644 --- a/Makefile +++ b/Makefile @@ -5,3 +5,36 @@ help: ## unit_tests - Run unit tests unit_tests: dart test test/tests.dart + +## temp_version - Set temporary version number +temp_version: + @sed -i 's/VERSIONADDEDBYGITHUB/1.0.0/g' pubspec.yaml + + +## github_version - Set version number for GitHub Actions +github_version: + @sed -i 's/1.0.0/VERSIONADDEDBYGITHUB/g' pubspec.yaml + +## pull_deps - Pull dependencies +pull_deps: + @make temp_version + dart pub get + @make github_version + +## update_deps - Update dependencies +update_deps: + @make temp_version + dart pub upgrade + @make github_version + +## outdated_deps - Check for outdated dependencies +outdated_deps: + @make temp_version + dart pub outdated + @make github_version + +## json_files - Generate JSON files +json_files: + @make temp_version + @dart run build_runner build + @make github_version