Motif will be used to both generate the Motif API and test the extension.
Download or clone the Motif repository in a motif folder directly under the motif-extensions folder.
Change director to the motif folder (contains motif workspace) and clean install its npm dependencies:
cd ./motif
npm ci
Change director to the motif package in the workspace. This package contains both the Motif app and its API.
cd ./motif
Build the API
npm run api
Make the API available to other npm packages on your computer
npm link
You can confirm this package is available for linking with:
npm ls -g