Contributions are welcome! To propose a change:
- Fork the repository
- Create a feature branch
- Submit a Pull Request
Run make to list the development tasks. The ones you need most:
make build # Build Prefire for the iOS Simulator
swift test # Run the Prefire macOS tests
make test-ios # Run the Prefire library tests on an iPhone simulator
make test # Run the PrefireExecutable unit tests
make test-cli # Run the PrefireCLI unit testsCI runs the same commands, see .github/workflows/swift.yml.
The Example project shows Prefire in an Xcode app with a snapshot test target.
PrefireCore— AST + preview parsing, caching, logicPrefireGenerator— handles stencil templating + snapshot generationPrefireCacheManager— unifies caching forTypesandPreviewsPrefireTestsPlugin/PrefirePlaybookPlugin— SPM/Xcode integrationsprefire— CLI entry point, calls shared generator code
Generated code comes from Stencil templates.