-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
40 lines (31 loc) · 1.24 KB
/
Copy pathmakefile
File metadata and controls
40 lines (31 loc) · 1.24 KB
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
.PHONY: clean builder_run assets_gen
# Adding a help file: https://gist.github.com/prwhite/8168133#gistcomment-1313022
help: ## This help dialog.
@IFS=$$'\n' ; \
help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//'`); \
for help_line in $${help_lines[@]}; do \
IFS=$$'#' ; \
help_split=($$help_line) ; \
help_command=`echo $${help_split[0]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \
help_info=`echo $${help_split[2]} | sed -e 's/^ *//' -e 's/ *$$//'` ; \
printf "%-30s %s\n" $$help_command $$help_info ; \
done
clean: builder_clean## Cleans the environment
@echo "╠ Cleaning the project..."
@rm -rf pubspec.lock
@fvm flutter clean
@fvm flutter pub get
builder_run:
@echo "╠ Running build runner..."
@fvm dart run build_runner build --delete-conflicting-outputs
builder_clean:
@echo "╠ Running build clean..."
@fvm dart run build_runner clean
@fvm dart run build_runner build -d
assets_gen: ## generates assets using flutter-gen and adds inline html preview for assets
@echo "╠ Generating assets"
@fluttergen
@fvm dart run bin/gen_assets_preview.dart || (echo "Error in project"; exit 1)
build_web: ## build for web
@echo "╠ building web release"
@fvm flutter build web --no-tree-shake-icons