@flowscripter/ts-example-plugin

Example TypeScript plugin for the esm-dynamic-plugins framework.

Usage no npm install needed!

<script type="module">
  import flowscripterTsExamplePlugin from 'https://cdn.skypack.dev/@flowscripter/ts-example-plugin';
</script>

README

ts-example-plugin

license dependencies travis npm

Example TypeScript plugin for the esm-dynamic-plugins framework.

Overview

ExtensionPointA.ts defines an example extension point ID EXTENSION_POINT_A_ID and a TypeScript interface for it. In a real world scenario this would likely be imported from a host application API module.

PluginA.ts provides an extension implementing the Extension Point EXTENSION_POINT_A_ID and provides the required implementation of Plugin so that the host application can discover it.

Refer to the example ts-example-host-app project for an example host application which can load and use this plugin.

Development

Firstly:

npm install

then:

Build: npm run build

Watch: npm run watch

Lint: npm run lint

Further Details

Further details on project configuration files and Javascript version support can be found in the template for this project.

License

MIT © Flowscripter