Prefire is a Swift developer tool that scans SwiftUI source files, extracts `#Preview` macros and `PreviewProvider` declarations, and generates automated snapshot tests plus an interactive "Playbook" component catalog. It is not a data project: it is a CLI/code generator with a runtime library and SwiftPM/Xcode build-tool plugins. The real pipeline is: a build plugin invokes the `prefire` binary with target/source/config arguments; the binary parses sources using SwiftSyntax for `#Preview` macro ranges and a Sourcery fork for `PreviewProvider` types; a fingerprint-based cache avoids re-parsing unchanged files; Stencil templates (one for snapshot tests, one for playbook models) render generated Swift code; snapshot tests run against swift-snapshot-testing and the bundled Prefire runtime, while `PlaybookView` renders the generated `PreviewModels` inside an app.
This repository provides syntax highlighting for GraphQL files in Xcode. It consists of an Xcode plugin that defines a file type for .graphql files and a language specification that provides syntax coloring. The plugin adapts to the deprecation of the Xcode plugin mechanism by focusing on the file type and language specification components, which still work in recent Xcode versions. The core component, GraphQL.xclangspec, is a well-crafted language definition that covers the full GraphQL syntax.