From bb491b53eb959284c48a08d24b01f34883cc8608 Mon Sep 17 00:00:00 2001 From: Alexey Korolev Date: Mon, 11 Nov 2024 14:44:20 +0300 Subject: [PATCH] Remove Makefile --- hooks/post_gen_project.sh | 2 +- {{ cookiecutter.name }}/.mise.toml | 3 ++- {{ cookiecutter.name }}/Makefile | 37 ------------------------------ 3 files changed, 3 insertions(+), 39 deletions(-) delete mode 100644 {{ cookiecutter.name }}/Makefile diff --git a/hooks/post_gen_project.sh b/hooks/post_gen_project.sh index 79cac0a..b5fa26f 100755 --- a/hooks/post_gen_project.sh +++ b/hooks/post_gen_project.sh @@ -4,7 +4,7 @@ mise install # Generate xcodeproj file -mise exec -- xcodegen +mise run project # Download .gitignore file curl -L 'https://www.gitignore.io/api/swift,macos,fastlane' > .gitignore diff --git a/{{ cookiecutter.name }}/.mise.toml b/{{ cookiecutter.name }}/.mise.toml index 96e008d..0170973 100644 --- a/{{ cookiecutter.name }}/.mise.toml +++ b/{{ cookiecutter.name }}/.mise.toml @@ -1,8 +1,9 @@ [tasks] pre-commit = "swiftformat {{ cookiecutter.name }} {{ cookiecutter.name }}Tests --lint" fmt = "swiftformat {{ cookiecutter.name }} {{ cookiecutter.name }}Tests" +project = "xcodegen" [tools] xcodes = "1.5.0" swiftformat = "0.54.6" -xcodegen = "latest" +xcodegen = "2.38.0" diff --git a/{{ cookiecutter.name }}/Makefile b/{{ cookiecutter.name }}/Makefile deleted file mode 100644 index b280630..0000000 --- a/{{ cookiecutter.name }}/Makefile +++ /dev/null @@ -1,37 +0,0 @@ -SWIFTFORMAT = Pods/SwiftFormat/CommandLineTool/swiftformat - -.PHONY: all -all: test - -.PHONY: project -## project: Generate .xcodeproj file using XcodeGen utility -project: - mint run "yonaskolb/XcodeGen@2.38.0" - -.PHONY: fmt -## fmt: Launch swift files code formatter -fmt: - $(SWIFTFORMAT) {{ cookiecutter.name }} {{ cookiecutter.name }}Tests - -.PHONY: lint -## lint: Launch swift files linter check -lint: - $(SWIFTFORMAT) {{ cookiecutter.name }} {{ cookiecutter.name }}Tests --lint - -GIT_HOOKS_SCRIPTS := $(wildcard hooks/*) - -.PHONY: hooks -## hooks: Install git pre-commit hook -hooks: - $(foreach file,$(GIT_HOOKS_SCRIPTS),ln -sf ../../$(file) .git/$(file); chmod +x .git/$(file);) - -.PHONY: clean -## clean: Clean up project files -clean: - rm -fr .cache .build Pods - -.PHONY: help -## help: Prints help message -help: - @echo "Usage: \n" - @sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /' | sort