Skip to main content

Creating a workspace

To set up an empty NX workspace follow the steps below. If you're unfamiliar with NX, check out NX.dev.

1. Run the command below to create an nx workspace for all your IrisX Apps:​

npx @trackunit/create-iris-app-workspace <name-of-your-workspace>

2. Go into your NX Workspace folder​

cd <name-of-your-workspace>

You now have a NX Workspace and are ready to create your first IrisX App!

Trackunit linting included

New workspaces come with Trackunit's ESLint rules set up for your apps and extensions. Once you have created some, lint them all from the workspace root:

npx nx run-many -t lint

Created your workspace before Trackunit linting was added (there's no eslint.config.cjs at the workspace root)? Follow Linting to set it up in an existing workspace.