Single Flutter package at the repo root. All code, tests, assets, and platform directories moved from app/ to root. Package renamed from clide_app to clide — all imports rewritten. Merged pubspec combines core (ffi) and app (flutter, yaml, xterm) dependencies. Makefile simplified: no APP_PRESENT conditionals, no cd, no daemon lifecycle. 317 tests pass. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
23 lines
867 B
Dart
23 lines
867 B
Dart
import 'package:alchemist/alchemist.dart';
|
|
|
|
/// Alchemist config shared across all golden tests.
|
|
///
|
|
/// * CI mode uses the Ahem font (shipped with Flutter's test harness) so
|
|
/// goldens render identically on every Linux runner and developer
|
|
/// machine. Any drift between platforms points to a real theme-token
|
|
/// regression, not a font-rendering fluke.
|
|
/// * Local mode keeps developer-machine fonts so you can eyeball
|
|
/// renders naturally; the `--update-goldens` workflow still produces
|
|
/// CI-valid goldens because CI runs the config below.
|
|
AlchemistConfig clideGoldenConfig({bool forceCiMode = false}) {
|
|
return AlchemistConfig(
|
|
theme: null, // we're not using Material ThemeData
|
|
platformGoldensConfig: PlatformGoldensConfig(
|
|
enabled: !forceCiMode,
|
|
),
|
|
ciGoldensConfig: const CiGoldensConfig(
|
|
enabled: true,
|
|
),
|
|
);
|
|
}
|