mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 01:06:00 +08:00
1.0 KiB
1.0 KiB
Formatters
This folder contains formatter configuration files to be used with IDEs as well as the spotless formatter expressed in the Gradle project in this directory.
You will need the following on your PATH:
- JDK 10+
- clang-format 13.0.1 (i.e.
brew install clang-format). Also set the environment variableCLANGFORMATto the path of theclang-formatexecutable. If you have another version installed, you can get it (here)[https://releases.llvm.org/download.html#13.0.1]. For Apple silicon getclang+llvm-13.0.1-x86_64-apple-darwin.tar.xzfrom github pages. - dotnet format (i.e.
dotnet tool install -g dotnet-format, comes with dotnet 6 out of the box) - tsfmt, (i.e.
npm install -g typescript-formatter)
To run the formatter, invoke the format.sh script. This will shuffle around the Gradle config files, invoke spotless, then undo the config file shuffling. Invoking ./gradlew spotlessApply from the formatters/ directory will not work.