bluejay iconBluejay 0.5.0

What's New in Bluejay 0.3.0?

Install

$ bun add https://github.com/apacheli/bluejay

Additions

BluejayOptions.post()

You can generate arbitrary files using BluejayOptions.post(). This function is executed when all of your pages render.

import { start } from "bluejay";

start({
    assets: "src/assets",
    dir: Bun.cwd,
    dist: "dist",
    mode: Bun.env.BUILD_MODE as "build" | "serve",
    pages: "src/pages",
    path: "",
    render: (page, pages) => {
        /* ... */
    },
    post: () => {
        return {
            "/my-file.txt": { data: "Hello, World!", type: "text/plain" },
        };
    },
});

What's Next for Bluejay?

I've recently been experimenting with Svelte's compiler. I don't know if Vue has one, but it would be funny to support Vue too.

I also want to build plugins for Bluejay since arbitrary files are possible now. Stay tuned for what's to come! I'm a one-man team at the moment.

Contributors

We love contributions! Check out our GitHub for more details.