feat: added just format command

This commit is contained in:
Sara 2025-06-20 21:28:01 +02:00
parent 384cfcbec6
commit 684fcbf3c9

View file

@ -2,7 +2,7 @@ set export
BUILD_NAME := "change_me"
build:
build: format
cd engine/ && scons target=editor symbols=yes optimization=debug dev_build=yes linker=mold use_llvm=yes compiledb=yes custom_modules="../modules"
run: build
@ -29,3 +29,6 @@ initialize-template projectname:
sed "s/change_me/{{projectname}}/" ./justfile
mv ./modules/PROJECT ./modules/{{projectname}}
format:
# Formatting Custom Modules
clang-format -i $(find modules/ -iname '*.h' -o -iname '*.c' -o -iname '*.hpp' -o -iname '*.cpp' -o -iname '*.hxx' -o -iname '*.cxx')