@flowscripter/js-example-host-app v1.3.7
js-example-host-app
Example JavaScript host application for the esm-dynamic-plugins framework.
Overview
Development
Firstly:
npm install
then:
Build: npm run build
Watch: npm run watch
Lint: npm run lint
E2E test: npm run e2e
Run with Node
Firstly run the host app and check no plugins are discovered:
npm run nodeHostApp
Then install a sample plugin providing one extension (without saving to package.json
):
npm install --no-save @flowscripter/ts-example-plugin
Now when you run the host app, you should see a plugin discovered:
npm run nodeHostApp
Install another sample plugin providing two extension (without saving to package.json
) and run again:
npm install --no-save @flowscripter/js-example-plugin
npm run nodeHostApp
Run with Browser
To serve locally:
npm run browserHostApp
Alternatively an online demo is available at: https://flowscripter.github.io/js-example-host-app/
In the browser developer tools, enable debug logging to the console by setting the local storage key/value:
debug = *,-NodeModulesPluginRepository
Without checking either listed plugin URL on the page and clicking on 'load', the browser console should show that no plugins are discovered.
When checking one or both plugin URLs and clicking on 'load', you should see plugins discovered.
Further Details
Further details on project configuration files and Javascript version support can be found in the template for this project.
License
MIT © Flowscripter
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago