mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +08:00
15 lines
415 B
Bash
Executable File
15 lines
415 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
# Format Haxe files
|
|
echo "Formatting Haxe files..."
|
|
|
|
if command -v haxelib &> /dev/null && haxelib list formatter &> /dev/null; then
|
|
find .. -name "*.hx" \
|
|
-not -path "*/.*" \
|
|
-not -path "*/node_modules/*" \
|
|
-not -path "*/build/*" \
|
|
| xargs haxelib run formatter -s
|
|
else
|
|
echo "Warning: haxe formatter not found. Install with: haxelib install formatter"
|
|
fi |