Skip to content

Latest commit

 

History

History
97 lines (64 loc) · 2 KB

File metadata and controls

97 lines (64 loc) · 2 KB

Contributing to Fluid

Development setup

Prerequisites

Initial configuration

git clone git@github.com:explorable-viz/fluid.git
cd fluid
./script/setup/dev-setup.sh
yarn install

Building

yarn workspace @explorable-viz/fluid build

This compiles PureScript, bundles the Fluid runtime, and produces output-es/ (ES module output).

Running websites locally

The websites are SvelteKit apps under website/. To run one in dev mode:

cd website/article
yarn dev

For a production-like preview:

yarn build && yarn preview

Testing

PureScript unit tests

yarn workspace @explorable-viz/fluid test

Website tests (Puppeteer)

Tests all SvelteKit websites with Puppeteer (Chrome and Firefox):

./script/test-website-all.sh

Or test a single website:

cd website/article
yarn test

Browser tests

yarn workspace @explorable-viz/fluid test-browser

Opens a browser window; check the JavaScript console for test results.

Publishing to npm

From the monorepo root:

yarn workspace @explorable-viz/fluid build-publish

This bumps the patch version (via npm version patch), builds in production mode, stages the article website, publishes to npm, and pushes the version tag. Version tracks milestone (e.g. 0.12.x for milestone fluid 0.12).

VS Code

  • 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

Workflow

See CLAUDE.md for the development workflow, including branching strategy, issue lifecycle, and milestone management.