Astro
Use @golar/astro to add Astro support to Golar.
Install the Plugin
Section titled “Install the Plugin”Make sure astro is installed in your project.
Then install the Golar plugin:
npm i -D @golar/astropnpm add -D @golar/astroyarn add -D @golar/astroRegister the Plugin
Section titled “Register the Plugin”Add the plugin import to golar.config.ts:
import { defineConfig } from 'golar/unstable'import '@golar/astro'
export default defineConfig({})Astro Prerequisite
Section titled “Astro Prerequisite”Before running Golar, run astro sync so Astro types are generated for your project.
npx astro syncpnpm astro syncyarn astro syncRun Golar
Section titled “Run Golar”Once the plugin is registered and Astro types are generated, run Golar in the default mode:
npx golarpnpm golaryarn golarThis command loads golar.config.ts, runs linting, and then type-checks your project files.
Official Tooling Used
Section titled “Official Tooling Used”Golar’s Astro support is built on the official withastro/compiler.