Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.
/ extension-sample Public archive

A sample iModel.js Extension

License

Notifications You must be signed in to change notification settings

imodeljs/extension-sample

Repository files navigation

iModel.js Example Extension

Copyright © Bentley Systems, Incorporated. All rights reserved.

An example iModel.js Extension that demonstrates the basic setup for an Extension.

Development Setup

  1. Install and build the Extension

    npm install
    npm run build
  2. 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

Contributing

Contributing to iModel.js

Releases

No releases published

Packages

No packages published