Skip to main content

React

Running the pre-built Bun Plugin to build your React app

To build your React app, you can use the pre-built Bun Plugin or Node.js Plugin. You don't need to install any dependencies, just run the following command directly:

fluentci run --wasm bun run build

Add Bun Pipeline to your project

Run the following command to add a Bun pipeline to your React project:

fluentci init -t bun

This will create a .fluentci directory in your project, feel free to customize the pipeline for your needs.

CI/CD Platforms

The following example shows how to use the Bun plugin to build a React app in different CI/CD Platforms: import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; import CodeBlock from "@theme/CodeBlock";

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: Build
run: fluentci run --wasm bun run build