Setup a CoSpace to link multiple (mono)repos together!
-
Install Node.js (Version 18.x)
- You can download Node.js from the official Node.js website.
-
Visual Studio Code
- Open Visual Studio Code.
File->Open Workspace From File- Select
reportingworkspace file in the root folder.
-
Clone the
viewer-components-reactrepository into thereposfolder.- Navigate to the
reposdirectory:cd ./repos/ - Clone the repository:
git clone https://github.com/iTwin/viewer-components-react.git - Upon completion, you should find a new
viewer-components-reactdirectory inside thereposfolder. For instance:./repos/viewer-components-react
- Navigate to the
-
Install
pnpmand the necessary packages.- Install
pnpmglobally:npm install -g pnpm - Navigate back to the root directory if not already present:
cd .. - Install the packages:
pnpm i
- Install
-
Build the
grouping-mapping-widgetpackage.- From anywhere within the root directory, build the package:
pnpm build
- From anywhere within the root directory, build the package:
-
Update the environment variables in the
viewerapplication.- Open the
.envfile inrepos/viewer/. - Update any necessary or missing variables.
- Open the
-
Start the
viewerapplication.- Navigate to the viewer directory:
cd ./repos/viewer - Start the application:
npm start
- Navigate to the viewer directory:
-
Development Flow:
- Make desired changes to the widget.
- Execute
pnpm run buildfrom any location ornpm run buildfrom within the widget root directory. - While the
viewerapplication is running, you should be able to observe the changes.