Implement production vertical slice foundation
This commit is contained in:
1 parent
9d4a89f355
commit
a18e82eb44
104 files changed
+10595
-268
No files matched your search
@@ -16,6 +16,24 @@ fail_with_matches() {
|
||||
fi
|
||||
}
|
||||
|
||||
if ! rg -q 'config/features=.*"Forward Plus"' project.godot; then
|
||||
fail_with_matches \
|
||||
"production project must declare Forward Plus" \
|
||||
"project.godot does not declare the Forward Plus feature"
|
||||
fi
|
||||
|
||||
renderer_overrides="$(rg -n '^renderer/rendering_method' project.godot || true)"
|
||||
fail_with_matches "production project overrides its Forward+ renderer" "$renderer_overrides"
|
||||
|
||||
autoload_entries="$({
|
||||
awk '
|
||||
/^\[autoload\]$/ { in_autoload = 1; next }
|
||||
/^\[/ { in_autoload = 0 }
|
||||
in_autoload && /^[^;[:space:]][^=]*=/ { print NR ":" $0 }
|
||||
' project.godot
|
||||
} || true)"
|
||||
fail_with_matches "custom autoloads require an ADR" "$autoload_entries"
|
||||
|
||||
source_directories="src tests"
|
||||
if [ -d game ]; then
|
||||
source_directories="$source_directories game"
|
||||
|
||||
Reference in new issue
Block a user