Skip to content

calebmshafer/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

About

A sample iModel.js Extension

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.2%
  • TypeScript 11.8%