Development
Development
This document describes the process for running this application on your local computer.
Getting started
It runs on macOS, Linux environments (should work on windows).
none of the developers nor our workflows run windows, we encourage running windows subsystem.
if your a windows user and has a MS inter-opt fix, we welcome PR`s π
You'll need Node.js to run the site. Check the version in package.json. To install Node.js, download the "LTS" installer from nodejs.org. If you're using nodenv, read the nodenv docs for instructions on switching Node.js versions.
This repo uses the package manger pnpm, see installation guide
Once you've installed Node.js and pnpm, open Terminal and run the following:
# clone repo
git clone https://github.com/equinor/fusion-framework
# install packages
pnpm install
# build all packages
pnpm buildBuild concurrency
pnpm build keeps Turbo's normal parallelism (ten concurrent tasks by default),
as do the other build scripts and direct Turbo calls. Local development and
existing CI jobs are unchanged.
Resource-constrained CI and sandbox callers must explicitly select build:ci:
pnpm build:ciThis runs the ordinary build with --concurrency=2 so cold builds fit
Greenkeeper's 4 GiB, 2-CPU validation budget. The limit applies only to this
invocation; it does not skip packages or checks, change caching, or cap memory
inside an individual task. pnpm test and pnpm lint remain unchanged.
Callers must opt into build:ci; adding the script does not change Greenkeeper's
externally defined task commands or existing GitHub Actions invocations.
See #6060 for the
default-concurrency OOM baseline and bounded-build measurements.
Repo structure
- ποΈ Cookbooks - collection of sample code
- ποΈ Packages - @equinor/fusion-framework-{FOLDER}
- π¦ App - base wire for applications
- π¦ CLI - tooling for building application
- π¦ Framework - root initiator (portal)
- ποΈ Modules - collection of modules
- ποΈ React - collection of tooling for React
- π¦ App - tooling for apps
- π¦ Framework - tooling for root initiator (portal)
- ποΈ Modules - collection of modules with tooling
- ποΈ Utils - collection of utilities