- Node.js >= 22
- Enable Yarn via Corepack:
corepack enable - git
- (Windows only) Ubuntu WSL
git clone git@github.com:fluid-org/fluid.git
cd fluid
./script/setup/dev-setup.sh
yarn installyarn workspace @fluid-org/fluid buildThis compiles PureScript, bundles the Fluid runtime, and produces output-es/ (ES module output).
The websites are SvelteKit apps under website/. To run one in dev mode:
cd website/article
yarn devFor a production-like preview:
yarn build && yarn previewyarn workspace @fluid-org/fluid testTests all SvelteKit websites with Puppeteer (Chrome and Firefox):
./script/test-website-all.shOr test a single website:
cd website/article
yarn testyarn workspace @fluid-org/fluid test-browserOpens a browser window; check the JavaScript console for test results.
From the monorepo root:
yarn workspace @fluid-org/fluid build-publishBumps the patch version, commits, tags vX.Y.Z, builds in production mode, stages the article website, and publishes to npm. Version tracks milestone (e.g. 0.12.x for milestone fluid 0.12). After it succeeds, push manually:
git push && git push --tagsRequires an npm automation token in ~/.npmrc (bypasses 2FA):
//registry.npmjs.org/:_authToken=npm_...
- Install the PureScript IDE extension
- In extension settings, select
Add Npm Path - Avoid having PureScript installed globally
Windows users:
- Launch VS Code from the Ubuntu (WSL) terminal
- Install the WSL extension
See CLAUDE.md for the development workflow, including branching strategy, issue lifecycle, and milestone management.