Fluid is an experimental programming language which integrates a bidirectional dynamic analysis to connect outputs to data sources in a fine-grained way. Fluid is implemented in PureScript and runs in the browser.
- git
- Node.js >=14.0.0
- yarn >= 1.22
Additionally, for Windows users only:
- Clone the repository (for Windows users, do this under the Ubuntu WSL)
- Run
./script/setup/dev-setup.sh
from the top-level directory - Run
yarn build
After building, tests can be run from the command line via yarn test-all
- As per command-line tests above, but run
yarn test-browser
, which opens a browser window. - To observe the status of tests, click
Debug
in the browser window, and then open the JavaScript Console for your browser (e.g., via the Developer Tools).
(Assumes you have already run yarn build
)
yarn serve fluid-org
(you may be prompted to proceed: typey
).- Open a browser at the served URL (usually
127.0.0.1:8080
)
Rebuild with puppeteerTests.headless
set to false
to run in browser. Then:
yarn bundle-website X
./script/test-page.sh X X.Y
The following are some notes on developing Fluid using VS Code.
-
Avoid having PureScript installed globally
-
Install the PureScript IDE extension
-
In the PureScript IDE extension settings, select
Add Npm Path
-
For Windows users:
- Launch VSCode through Ubuntu (WSL) terminal
- Install WSL extension in VSCode