-
Notifications
You must be signed in to change notification settings - Fork 26
/
Makefile
63 lines (50 loc) · 2.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Defining variables for all scripts
SCRIPTS_DIR := scripts
INIT_APP_SCRIPT := $(SCRIPTS_DIR)/init_app.sh
CLEAN_IOS_SCRIPT := $(SCRIPTS_DIR)/clean_ios.sh
FVM_VSCODE_SCRIPT := $(SCRIPTS_DIR)/fvm_vscode.sh
VERSION_SCRIPT := $(SCRIPTS_DIR)/version.sh
SURFGEN_SCRIPT := $(SCRIPTS_DIR)/surfgen.sh
CODEGEN_SCRIPT := $(SCRIPTS_DIR)/build_runner.sh
INTL_SCRIPT := $(SCRIPTS_DIR)/intl_with_format.sh
RESET_GOLDENS_SCRIPT := $(SCRIPTS_DIR)/reset_goldens.sh
CHECK_COVERAGE_SCRIPT := $(SCRIPTS_DIR)/check_coverage.sh
SPIDER_BUILD_SCRIPT := $(SCRIPTS_DIR)/spider_build.sh
FORMAT_SCRIPT := $(SCRIPTS_DIR)/format.sh
# Tasks to run each script
init_app:
sh $(INIT_APP_SCRIPT)
clean_ios:
sh $(CLEAN_IOS_SCRIPT)
fvm_vscode:
sh $(FVM_VSCODE_SCRIPT)
version:
sh $(VERSION_SCRIPT)
surfgen:
sh $(SURFGEN_SCRIPT)
codegen:
sh $(CODEGEN_SCRIPT)
intl_with_format:
sh $(INTL_SCRIPT)
reset_goldens:
sh $(RESET_GOLDENS_SCRIPT)
check_coverage:
sh $(CHECK_COVERAGE_SCRIPT)
spider_build:
sh $(SPIDER_BUILD_SCRIPT)
format:
sh $(FORMAT_SCRIPT)
# By default, we display a message about available tasks
all:
@echo "Available tasks:"
@echo " - init_app: flutter clean, clean_ios, pub get, pub run build_runner, dart format -l 120"
@echo " - clean_ios: Clears local dependencies for iOS."
@echo " - fvm_vscode: The script creates (or overwrites, if it already exists) a settings file for Visual Studio Code with a specific set of FVM parameters."
@echo " - version: Installing the desired version of fvm and pubget"
@echo " - surfgen: Generate API layer from Swagger"
@echo " - codegen: build_runner build & dart format"
@echo " - intl_with_format: Intl generation with formatting"
@echo " - reset_goldens: Deletes all created golden tests and re-generates them."
@echo " - check_coverage: The script allows you to automate the process of testing the coverage of the source code of the Flutter project and generating the corresponding report."
@echo " - spider_build: Runs spider build, formats the code, runs golden tests."
@echo " - format: fvm dart format -l 120 lib test"