JSPM

  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q53510F
  • License MIT

Use Bau within Astro

Package Exports

  • @grucloud/bau-astro
  • @grucloud/bau-astro/client.js
  • @grucloud/bau-astro/package.json
  • @grucloud/bau-astro/server.js

Readme

@grucloud/bau-astro

This [Astro integration] adds Bau.js to your project so that you can use Bau.js anywhere on your page.

This is an experimental project, a proof of concept.

Installation

Manual Install

First, install the @grucloud/bau-astro package using your package manager. If you're using npm or aren't sure, run this in the terminal:

npm install @grucloud/bau-astro

Then, apply this integration to your astro.config.* file using the integrations property:

// astro.config.mjs
import { defineConfig } from "astro/config";
import bau from "@grucloud/bau-astro";

export default defineConfig({
  // ...
  integrations: [bau()],
});

Usage

Once the integration is installed, you can use Bau.js in, your Astro project.

Examples

Limitation

  • CSS-in-JS such as bau-css, emotion, styled-components, goober are not supported by Astro, see issue
  • client:only is not supported: see issue