@flowscripter/ts-example-host-app v1.2.4
ts-example-host-app
Example TypeScript host application for the esm-dynamic-plugins framework.
Overview
Development
Firstly:
npm installthen:
Build: npm run build
Watch: npm run watch
Lint: npm run lint
E2E test: npm run e2e
Run with Node (14.4.0+)
Firstly run the host app and check no plugins are discovered:
npm run nodeHostAppThen install a sample plugin providing one extension (without saving to package.json):
npm install --no-save @flowscripter/ts-example-pluginNow when you run the host app, you should see a plugin discovered:
npm run nodeHostAppInstall a different sample plugin providing two extension (without saving to package.json) and run again:
npm install --no-save @flowscripter/js-example-plugin
npm run nodeHostAppRun with Browser
To serve locally:
npm run browserHostAppAlternatively an online demo is available at: https://flowscripter.github.io/ts-example-host-app/
In the browser developer tools, enable debug logging to the console by setting the local storage key/value:
debug = *,-NodeModulesPluginRepositoryWithout checking either plugin URL listed on the page, click on 'load' and 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
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
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago