feat: added just format
command
This commit is contained in:
parent
384cfcbec6
commit
684fcbf3c9
7
justfile
7
justfile
|
@ -1,8 +1,8 @@
|
||||||
set export
|
set export
|
||||||
|
|
||||||
BUILD_NAME := "change_me"
|
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"
|
cd engine/ && scons target=editor symbols=yes optimization=debug dev_build=yes linker=mold use_llvm=yes compiledb=yes custom_modules="../modules"
|
||||||
|
|
||||||
run: build
|
run: build
|
||||||
|
@ -29,3 +29,6 @@ initialize-template projectname:
|
||||||
sed "s/change_me/{{projectname}}/" ./justfile
|
sed "s/change_me/{{projectname}}/" ./justfile
|
||||||
mv ./modules/PROJECT ./modules/{{projectname}}
|
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')
|
||||||
|
|
Loading…
Reference in a new issue