feat(cli): detect Blume documentation sites
Problem
grab@latest init does not detect documentation sites built with Blume, even though Blume generates an Astro/Vite runtime and supports custom Astro integrations.
Reproduction
From a Blume project:
bunx grab@latest init
✿ React Grab 0.2.0
✔ Preflight checks.
✖ Could not detect a supported framework.
React Grab supports Next.js, Vite, TanStack Start, and Webpack projects.This repository uses Blume 1.6.6. Its generated runtime is Astro-based, but the project itself has no standard Vite entrypoint for the initializer to inspect.
Expected behavior
The initializer should recognize a Blume project and offer the appropriate setup, or document Blume as a supported Astro/Vite integration.
Current workaround
A Blume site can be integrated manually with an Astro integration that injects the development-only module:
const reactGrab: AstroIntegration = {
name: "react-grab",
hooks: {
"astro:config:setup": ({ injectScript }) => {
injectScript("page", "if (import.meta.env.DEV) { import('react-grab'); }");
},
},
};Could the CLI detect Blume, for example via blume in dependencies or blume.config.ts, and configure this automatically? CC @haydenbleasel, the Blume maintainer.
Automatically submitted on behalf of the user by an AI agent.
Source: aidenybai/react-grab