See ./src/utils/analytics
To run this demo locally, you must first build all the local packages
- In the repo root folder, run
npm run setup - Then In the repo root folder,
npm run buildto ensure all the local plugins are built. - Now change directories back into
/example/demoand runnpm installto install the local plugins. - Then you should be able to start it locally with
npm start
If you run into an installation error, make sure you have built all plugins in the root repo (mentioned in step 2).
If you still see errors, remove the package-lock.json file in this directory & run npm install again. This fixes some oddities around how npm file: references work.
To see your changes to plugins reflected in the demo app:
- Run
npm run watchin the root of the repository in a separate terminal window. - With watch running, in a new terminal window change directories back into
/example/demoand runnpm start - Edit code in a given plugin and it will automatically rebuilt & the demo app will reload.
- Add/edit plugins in
./src/utils/analytics - Update
.envkeys to update the environment values used by plugins
Then start the app
npm start