This guide will step you through creating an extension similar to the TsDemo example. This includes coding, bundling, testing and deploying the extension.
The main steps are:
Root Folder
Create or select a folder under which you will create the motif extension(s). Let's call it, extensions-dev.
Install Motif
Install the motif repository under the extensions-dev folder.
Custom Extensions Folder
Create a folder for custom extensions under the custom-motif-extensions folder. In this case, ts-demo.
Create NPM Package file
Create the NPM package file for the new motif extension in the extension (ts-demo) folder.
Extension
Create the TsDemoExtension extension class.
Frame
Create the BlueFrame Frame class.
Strings
Create the translatable strings.
Entry Point
Create the entry point (index.js) module.
Config
Create the tsconfig.json file needed to compile the extension.
Bundling
Create the webpack tsconfig.json file needed to compile the extension.
Test
Test and debug the extension with Motif.
Deploy
Include the extension in a Motif deployment.