Copyright © Bentley Systems, Incorporated. All rights reserved.
An example iModel.js Extension that demonstrates the basic setup for an Extension.
-
Install and build the Extension
npm install npm run build
-
Setup local server to serve out the Extension for loading into an iModel.js App
# Create the folder to host the Extension mkdir -p ./lib/imjs_extensions/sample # Link the output of the build step above to the new folder cp -r ./lib/extension/ ./lib/imjs_extensions/sample/ # Setup a server hosting the Extension from "localhost:5000" npx serve --cors ./lib